Closed rlindooren closed 6 years ago
I have the same error. Running the binary release of kotlin-compiler-1.2.30 on OpenJDK 9.0.4 here. Downloaded gradle 4.6, added it to my path, and the build works now. (At least, it's getting past this error and doing a build.) If PR #114 fixes this, can someone please apply it?
I opened the Koans project in IntelliJ but noticed that the
build.gradle
file couldn't be parsed.When clicking on the 'Refresh all Gradle projects' button in the 'Gradle Projects' menu I got the following message: 'Could not determine java version from '9.0.0.15''.
After upgrading Gradle to version 4.2.1 the problem went away and the contents of the build.gradle file were recognized correctly. I found the solution here: https://discuss.gradle.org/t/could-not-determine-java-version-from-9-0-1/24457/3
PR: https://github.com/Kotlin/kotlin-koans/pull/114