Can anyone help me about converting Kotlin code in Android Studio to Java?
I went through the below process:
Tools >> Kotlin
Seems like a bug.
Tools -> Kotlin -> Decompile Kotlin to Java
Was actually disabled for me too even after a successful build (In my side Android Studio v3.2) so, I went through this:
Click on the Kotlin (Compiled class):
Selected Tools -> Kotlin -> Show Kotlin Bytecode
Then kotlin bytecode window appeared:
Made JVM 8 Target as selected and then decompile gave me the java class.
Note that this happened when Java Bytecode Decompiler plugin was enabled on the Android Studio.
Update:
This however might have some issues even after converting to java and perhaps, we should wait for the newest releases.