Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

1.2K
Views
Cannot find supported Gradle version for JDK 17. The Gradle supports JDK versions 7 through 16

Just trying to create a Gradle project using the jdk17, facing the below issue. I know Gradlew 7.3 is required for JDK 17, but quite not sure from where I should set the version of Gradle

enter image description here

Gradle location

enter image description here

Gradle version

enter image description here

over 4 years ago · Santiago Trujillo
3 answers
Answer question

0

It's because the current version of IntelliJ (2021.2.3) is not aware of gradle 7.3. To get around the issue, press "Yes" on the dialog. When the project is created, change distributionUrl in gradle/wrapper/gradle-wrapper.properties to https\://services.gradle.org/distributions/gradle-7.3-bin.zip. After you refresh the project it should be able to build.

over 4 years ago · Santiago Trujillo Report

0

I've reproduced the same issue:

Unsupported Project JDK

Cannot find supported Gradle version for JDK 17. The Gradle supports JDK versions 7 through 16.

using Java 17 & Gradle 7.3 & Windows 10.

But, as I see from matrix of compatibility, there must be no issue with Java 17 & Gradle 7.3:

enter image description here

As temporary workaround it can be solved using Java 15 instead of Java 17 with Gradle 7.3, but for me it looks like a bug related to Intellij IDEA 2021.2.2 (Ultimate Edition | Build #IU-212.5284.40, built on September 14, 2021) + Java 17, so I opened a ticket on YT:

Cannot find supported Gradle version for JDK 17. The Gradle supports JDK versions 7 through 16.

Also I've reproduced the same issue using versions of Gradle: 5.6.4, 6.1, 7.1, 7.3

with Java 17 in Intellij IDEA until I downgraded to Java 15.

To be noticed: this is a bug which is specifically related to Java 17 + Intellij IDEA 2021.2.2 (Ultimate Edition | Build #IU-212.5284.40, built on September 14, 2021) and it's not related to GRADLE_HOME + GRADLE_HOME/bin.

over 4 years ago · Santiago Trujillo Report

0

I somehow got Java 17 with Gradle 7.2 working (with IntelliJ IDEA 2021.2.2 Community Edition and Windows 10).

I had Gradle 7.2 installed separately. This is what I configured within IntelliJ:

  • File » Settings
  • Then on the left navigation menu Build, Execution, Deployment » Build Tools » Gradle
  • Set Gradle JVM to 17
  • Set Use Gradle from: to Specified location and select the path to Gradle 7.2.

You could also try to explicitly set the Java language version within build.gradle:

java {
    toolchain {
        languageVersion = JavaLanguageVersion.of(17)
    }
}
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!