https://kotlinlang.org logo
#getting-started
Title
# getting-started
w

wydra91

05/27/2021, 7:36 AM
Sorry, I didn't mean to send that, but I keep getting that alert in the build and I don't know what is going on or why I'm getting it. Am I doing something wrong when setting up the project?
r

Roukanken

05/27/2021, 7:40 AM
quick search looks like it's likely some conflict with new gradle and IntelliJ - error means "I read Java 16 files, but I'm lower Java" https://stackoverflow.com/questions/67079327/how-to-fix-unsupported-class-file-major-version-60-in-intellij try these solutions if they help
w

wydra91

05/27/2021, 7:41 AM
Odd, I did select JDK 16 when setting up the project, it was in the dropdown. Is kotlin 1.5.10 not happy with JDK 16? Sorry, I'm very new to that kind of stuff.
r

Roukanken

05/27/2021, 7:43 AM
this seems more like Gradle/IntelliJ is complaining about needing to run new JDK version files of Gradle
not related to project's JDK
w

wydra91

05/27/2021, 7:45 AM
hmmmm
interesting.... so I should maybe be using an older JDK then?
r

Roukanken

05/27/2021, 7:47 AM
the fix should be to run Gradle under newer JVM of which should be able to be configured in IntelliJ, or JAVA_HOME variable or... depends on how exactly are you running Gradle - there are several ways IntelliJ can run it
w

wydra91

05/27/2021, 7:51 AM
I think it's running from the wrapper task in the gradle build script if I'm reading the settings correctly.
3 Views