5

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.

0xAliHn
  • 18,390
  • 23
  • 91
  • 111

3 Answers3

7

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
Kishan Viramgama
  • 893
  • 1
  • 11
  • 23
1

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

Lan Nguyen
  • 785
  • 5
  • 13
1

This is a bug in the Kotlin plugin: https://youtrack.jetbrains.com/issue/KT-26298 . Please update your IDE plugin version to 1.2.61, the problem is fixed there.

Alexey Belkov
  • 2,499
  • 4
  • 23
  • 22