Intellij Kotlin Project

Answered

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

0
1 comment

Please set SDK for project/module in "Project Structure".

0

Please sign in to leave a comment.