I started off with the tutorial for learning Kotlin in IntelliJ
.When I tried running the example i.e
fun main(args: Array) {
prin
I was too getting this error, but i have solved this using below concept.
This error comes because of not configuring java properly.
I had this problem because I was trying to set up a multiplatform library configurations.
I had deleted all the source sets with their dependencies from the "build.gradle" file but kept the "common" source set.
Native was working fine but the JVM was not able to build and showed your error.
In the end, the solution was to not delete the Source set of the JVM neither it's dependencies