Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 235
KX-NR Avatar asked Oct 17 '25 19:10

KX-NR


1 Answers

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.

like image 199
lukasl-dev Avatar answered Oct 19 '25 08:10

lukasl-dev



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!