Sorry, I didn't mean to send that, but I keep gett...
# getting-started
w
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
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
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
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
hmmmm
interesting.... so I should maybe be using an older JDK then?
r
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
I think it's running from the wrapper task in the gradle build script if I'm reading the settings correctly.