Right click on the deploy or any other task and select “Open Gradle Run Configuration…” Then navigate to “Java Home ” and paste your desired java path.
Read moreDoes Gradle support Java 11?
> Android Gradle plugin requires Java 11 to run .
Read moreDoes Gradle support Java modules?
Building, testing and running Java Modules With this release, Gradle supports the Java Module System with everything you need to compile and execute tests for Java modules. You can also build Javadoc and run applications.
Read moreWhat is Gradle toolchain?
Additionally, you may want to build a project using a Java version that is not supported for running Gradle. A Java Toolchain (from now on referred to simply as toolchain) is a set of tools, usually taken from a local JRE/JDK installation that are used to configure different aspects of a build .
Read moreWhat is Gradle Application plugin?
The Android plugin for Gradle works with the build toolkit to provide processes and configurable settings that are specific to building and testing Android applications . Gradle and the Android plugin run independent of Android Studio.
Read moreWhat is Gradle Java library plugin?
The Java Library plugin expands the capabilities of the Java plugin by providing specific knowledge about Java libraries . … All the source sets, tasks and configurations exposed by the Java plugin are implicitly available when using this plugin.
Read moreWhich Java does Gradle use?
A Java version between 8 and 17 is required to execute Gradle. Java 18 and later versions are not yet supported. Java 6 and 7 can still be used for compilation and forked test execution. Any supported version of Java can be used for compile or test.
Read more