Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How can i change the Gradle Version in InteliJ?

I have the Error: "Found invalid Gradle JVM configuration"
"JDK 17.0.1 isn´t compatible with gradle 7.1. Please fix JAVA_HOME enviroment variable"

Im not sure why it says gradle 7.1. The gradle Version i have is 7.4.2. This version should work with JDK 17

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Take a look at the gradle-wrapper.properties file in the ./gradle/wrapper directory.

In the file, you can define the distribution URL from which Gradle is loaded. For example:

distributionUrl=https\://services.gradle.org/distributions/gradle-7.3-bin.zip

As far as I know, IntelliJ adopts the version.

According to the Gradle documentation, Gradle 7.3 is the first Gradle version that supports JDK 17. You could try that one.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading