Kotlin And Java In The Same Project Using Eclipse IDE

后端 未结 5 1512
轻奢々
轻奢々 2020-12-30 02:21

I posted a similar question regarding gradle but this question is without gradle or maven.

I can not get Kotlin working properly using Eclipse IDE. This works great

5条回答
  •  天命终不由人
    2020-12-30 03:10

    Add Kotlin Nature fixes the issue. Click on your project and Configure Kotlin -> Add Kotlin nature

    This partially fixes the issue, though eclipse plugin is still buggy and auto import function still doesn't work for me.

    If you're having any issue, make sure you have kotlin_bin folder added in your project. Also make sure that ALL kotlin files have the correct package name sometimes when you rename packages or move files around kotlin classes may not get updated.

提交回复
热议问题