Kotlin And Java In The Same Project Using Eclipse IDE

后端 未结 5 1530
轻奢々
轻奢々 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:07

    As of the current Eclipse version (2019-09):

    You can't add Kotlin to a Java project, but you can add Java to a Kotlin project.

    The procedure to accomplish a mixed Kotlin/Java project was roughly:

    1. Install Kotlin plug-in
    2. Create empty Kotlin project
    3. Move the Java code into the Kotlin project
    4. Delete the original project
    5. Fix project references

提交回复
热议问题