Using kotlin extension function in Java code

I have created an extension function for listening to click listener for buttons, when I try to access it from Java code it does not work, Cannot access clicks() from java file, this is what I tried …

supportFragmentManager.commit in kotlin is not working

Can anyone help me with this please? Inside my fragment supportFragmentManager.commit{} is not working. Android Studio is not recognizing this I don’t know what to do. I am working in kotlin project

Cannot find symbol error in android studio

I’m trying to add fragments to a navigation drawer. But I have the error: cannot find symbol class Fragment. I added: import android.support.v4.app.Fragment Also add the fragment object(Fragment …