convert java file to kotlin file disabled in Android studio 3.3
Asked Answered
K

3

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.

Krahmer answered 29/8, 2018 at 6:38 Comment(1)
Just try a shortcut key -> Ctrl+Shift+Alt+k in Windows and UbuntuArticulate
N
6

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
Neron answered 29/8, 2018 at 6:47 Comment(1)
Its disabled that's why asking the question.Krahmer
A
1

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

Alansen answered 29/8, 2018 at 6:44 Comment(0)
S
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.

Sri answered 29/8, 2018 at 7:7 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.