In Intellij’s project structure settings I have a choice between Java SDK (from OpenJDK) and Kotlin SDK (from Kotlin plugin?). Which should I use for Kotlin application and what is the difference?
If I recall correctly, Kotlin SDK in IDEA is used in non-JVM modules, like Kotlin/JS or Kotlin/Native. If you are developing for Kotlin/JVM, you should pick corresponding JDK in project structure and add kotlin-stdlib either as a dependency in Gradle / Maven or via IDEA assistant if you don't use any external build system (you'll see "Kotlin not configured" bar if it needs additional setup).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With