0xAliHn
0xAliHn

Reputation: 19270

convert java file to kotlin file disabled in Android studio 3.3

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.

Upvotes: 5

Views: 3539

Answers (3)

Kishan Viramgama
Kishan Viramgama

Reputation: 1254

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

Upvotes: 6

Alexey Belkov
Alexey Belkov

Reputation: 2559

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.

Upvotes: 1

Lan Nguyen
Lan Nguyen

Reputation: 795

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

Upvotes: 1

Related Questions