简体   繁体   中英

Kotlin not working on Android Studio

  1. All kotlin files can't be displayed on my Android Studio. Even when you directly convert java files into koltin, you can edit it, but it doesn't appear on the project file tree. Also the IDE suggests that it's a decompiled .class file.

  2. I can't create Kotlin files. When I do, it shows a dialog that says

Cannot Create File / unable o parse template "Kotlin File" Error message: Cannot create class-file

  1. The plugin "Kotlin Extensions For Android(obsolete) can't be installed properly. I can click install, but it doesn't work.

My Android Studio Version 2.1.2

Please make sure that the .kt extension is associated with the Kotlin files in Settings | Editor | File Types.

Also note that the reason why "Kotlin Extensions for Android (obsolete)" has the "obsolete" word in its name is specifically to let you know that you should not install that plugin.

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