Gradle uses whichever JDK it finds in your path (to check, use java -version). Alternatively, you can set the JAVA_HOME environment variable to point to the install directory of the desired JDK.
Read moreWhich Gradle version is compatible with Java 17?
Java Java versionFirst Gradle version to support it146.3156.7167.0177.3Compatibility Matrix – Gradle User Manual docs.gradle.org › current › userguide › compatibility
Read moreDoes Gradle work with Java?
Gradle runs on the JVM and you must have a Java Development Kit (JDK) installed to use it . This is a bonus for users familiar with the Java platform as you can use the standard Java APIs in your build logic, such as custom task types and plugins. It also makes it easy to run Gradle on different platforms.
Read moreDoes 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.
Read moreIs Gradle compatible with JDK 15?
Gradle now supports running on and building with Java 15 .
Read moreDoes Gradle support Java 14?
Gradle now supports running and building with Java 14 .
Read moreWhich Gradle version should I use?
If you’ve updated your Android Studio to 1.3. 2 version then I would suggest using Build Tools Version 23.0. 0 and compile API 23 Android 6.0. As for Gradle Version – 2.4 or higher up to latest 2.7 .
Read more