FragmentTransaction won't Compile in Kotlin Android Project
问题 In the process of learning Kotlin with Android, the failure to compile and generally unhelpful error text have left me stumped. The error text says the following: None of the following functions can be called with the arguments supplied. add(Fragment!, String!) defined in android.app.FragmentTransaction add(Int, Fragment!) defined in android.app.FragmentTransaction In both instances the Fragment! text is highlighted in red. I am aware that Kotlin refers to Java classes with an !, but I can't