Intellij Kotlin Project
已回答
I create a new Kotlin JVM | IDEA project. I create a new Kotlin file. I create a main function with nothing in it and it compiles successfully. When I add println("Hello World") to the main the compile fails with a message unresolved reference println.
I would think that intellij would know how to create a small Kotlin project. It has the java 8 SDK in project structure and the Kotlin libraries.
How do I fix this
请先登录再写评论。
Please set SDK for project/module in "Project Structure".