Hi, thanks for the excellent support here last tim...
# gradle
d
Hi, thanks for the excellent support here last time I had a question. This time I have upgraded my Kotlin plugin to 1.4 in IntelliJ IDEA and when I opened build.gradle.kts in one of my projects I got a question "Enable blabla scripting blabla", which I said OK to. Related or not, but almost every line turned red with errors like:
Cannot access 'java.lang.Object' which is a supertype of 'org.gradle.kotlin.dsl.KotlinBuildScript'. Check your module classpath for missing or conflicting dependencies
I'm pretty sure I haven't changed any classpaths or dependencies...
So it seems it can't find the Java stdlib
Changing project structure -> platform settings -> sdk to OpenJDK 8 seemed to fix it, got that from https://www.reddit.com/r/Kotlin/comments/dk915e/errors_in_intellij_using_kotlin_java_11/
Worked with OpenJDK 11 too now 🙂