Cannot set Gradle JVM version in my Android Studio

Viewed 474

Everyone in this thread suggest to set the Gradle JVM to version 1.8, but I just cannot find that version in Intellij.

File -> Settings -> Build, Execution, Deployment -> Build Tools -> Gradle leads me to:

enter image description here

Project structure doesn't help either:

enter image description here

There is no place in Intellij where I can set the Gradle JVM version.

Gradle:

compileOptions {
    sourceCompatibility JavaVersion.VERSION_11
    targetCompatibility JavaVersion.VERSION_11
}

I know AS requires JDK 8, but I saw some people pull off using 11 in the compileOptions by setting Gradle JVM to 8, but I can't do that on my Intellij for some reason.

1 Answers

You can set up JDK for your project in File|Project Structure|SDK Location|JDK Location.

Related