Home > Software engineering >  Unsupported gradle version MAC
Unsupported gradle version MAC

Time:11-15

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

CodePudding user response:

You can check here that gradle will follow your environment variables .

If the Gradle location is set in Use Gradle from with the Specified location option and its path is defined in the environment variable GRADLE_HOME or PATH, IntelliJ IDEA deduces this location and suggests its path as the default value.

so i think you should set both GRADLE_HOME and add the GRADLE_HOME/bin to your path in order to fix this .

CodePudding user response:

Assuming that you're looking to switch versions of gradle, the best way forward is to use a version manager.

I personally use sdkman which is Open source and provides support for major tools like Java, Maven, Gradle and others.

The benefit is you can install multiple versions and switch between them without dealing with env vars.

# installing
$ sdk install gradle 6.7.1

# switching version
$ sdk use gradle 6.7.1

# set as default version
$ sdk default gradle 6.7.1 
  • Related