This message was deleted.
# community-support
s
This message was deleted.
🧵 1
a
Java 20 requires Gradle 8, but you have Gradle 7.5.1 which supports at most Java 18 https://docs.gradle.org/current/userguide/compatibility.html#java The error message
Unsupported class file major version 64
is common and I always find it confusing. For some weird reason Java version errors use different numbering to refer to the Java version, so you have to cross reference them https://stackoverflow.com/questions/9170832/list-of-java-class-file-format-major-version-numbers
v
Even Gradle 8 is not yet 20-compatible as the table you linked to documents. Just as toolchain, not to run Gradle. ;-)
k
Yes, I am still facing the same issue,
v
Well, downgrade Java as suggested. ;-)
k
Downgrade to which version
v
A compatible one for the Gradle version you use as documented at the link you were given
Something between 8 and 18 inclusive
a
Java has LTS versions (there are some caveats I’m skipping over). So 20 is the latest but it’s not a LTS version, so not all tools will support it. Instead, try using Java 17, which is a good compromise https://endoflife.date/java
k
Thanks @Adam @Vampire this worked when i downgraded my Java version
👌 1
👍 1