convert java file to kotlin file disabled in Android studio 3.3

Viewed 2815

After updating android studio 3.3 canary 7 convert java file to kotlin file is showing disable.

Android Studio Menu -> Code -> Convert Java File to Kotlin File

Its showing disable. Why it is disable and how can i enable it android studio latest version.

3 Answers

Open your File and press

Ctrl + Alt + Shift + K

Converting Java Code to Kotlin Code :

  • Select your java class file from project structure.
  • Android Studio Menu -> Code -> Convert Java File to Kotlin File

Go to Tools -> Kotlin -> Configure Kotlin in Project to set up again.

Related