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?
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.
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.
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.
A Java version between 8 and 18 is required to execute Gradle. Java 19 and later versions are not yet supported.
Change the Gradle JVM or the Project JDK. You can also use an older Gradle version if you want to stay on Java 7.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With