Issue
When trying to configure the project using Java 21 I'm getting the error:
Unsupported Java. Your build is currently configured to use Java 21 and Gradle 8.3.
Unfortunately, there is no information in official documentation for now: https://docs.gradle.org/current/userguide/compatibility.html
A Java version between 8 and 20 is required to execute Gradle. Java 21 and later versions are not yet supported.
Starting from which version does Gradle support Java 21?
Solution
Current
For Java 21 support, you can use Gradle 8.4. The release notes says:
Gradle now supports using Java 21 for compiling, testing, and starting other Java programs.
However, Gradle itself cannot yet run on Java 21.
Future
From the same release notes:
Support for running Gradle with Java 21 is expected in future versions.
Answered By - Basil Bourque
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.