Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ERROR: Could not determine java version from "17.0.1"

Tags:

java

gradle

when trying to run ./gradlew setupDecompWorkspace eclipse I get the following error: Could not detrmine java version from 17.0.1.

the gradle-wrapper distributionUrl is gradle-2.7-bin.zip and my current JAVA_HOME is jdk 17.0.1.

How can I resolve this error?

like image 698
Vexea Avatar asked Apr 27 '26 02:04

Vexea


1 Answers

From official gradle doc:

A Java version between 8 and 16 is required to execute Gradle. Java 17 and later versions are not yet supported.

You need to downgrade you java to work with gradle .

UPDATED:

As gradle version 7.3 released at 5th Nov 2021 , It will now provide support to Java 17.

So you either upgrade to 7.3 gradle version or downgrade your java version .

like image 194
George Avatar answered Apr 29 '26 15:04

George