Skip to content
Advertisement

Gradle JVM version doesn’t match the used JDK version

In the screenshot below, you can see what I am using the 11.0.11 JDK version but my Gradle uses the 1.8.0_282 JVM version. And it’s not a problem because for set the Java version in a project using Gradle Toolchain.

enter image description here

I’m not sure but it looks strange. Is it worth worrying about and can I specify a specific JVM version (11)?

Advertisement

Answer

It seems you have a java executable on your PATH that doesn’t match up with a configured JAVA_HOME environment. Gradle uses the JAVA_HOME to detect the java installation to use.

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement