Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fix "Gradle 5.4 requires Java 8 or later to run. Your build is currently configured to use Java 7"

enter image description here

I use IntelliJ IDEA, and there is a problem message:

"Gradle 5.4 requires Java 8 or later to run. Your build is currently configured to use Java 7"

How to handle it?

like image 489
merdekacyber Avatar asked Aug 25 '19 17:08

merdekacyber


People also ask

Does Gradle 7 require Java 11?

Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8. You can try some of the following options: - changing the IDE settings.

Does Gradle support JDK 17?

Gradle now supports running on and building with Java 17. In previous Gradle versions, running Gradle itself on Java 17 resulted in an error. JVM projects could have been built with Java 17 using toolchains. As of Gradle 7.3, both running Gradle itself and building JVM projects with Java 17 is fully supported.

What version of Java does Gradle use?

Gradle can only run on Java version 8 or higher. Gradle still supports compiling, testing, generating Javadoc and executing applications for Java 6 and Java 7. Java 5 and below are not supported.

Does Gradle work with Java 18?

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


1 Answers

Change the Gradle JVM or the Project JDK. You can also use an older Gradle version if you want to stay on Java 7.

like image 54
CrazyCoder Avatar answered Sep 25 '22 21:09

CrazyCoder