简体   繁体   中英

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.

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

转到工具 - > Kotlin - >在项目中配置Kotlin以重新设置。

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM