What is JAVA_HOME directory?

JAVA_HOME is an operating system (OS) environment variable which can optionally be set after either the Java Development Kit (JDK) or the Java Runtime Environment (JRE) is installed . The JAVA_HOME environment variable points to the file system location where the JDK or JRE was installed.

Read more

Where is the JDK for Android Studio?

Set the JDK version Open your project in Android Studio and select File > Settings… > Build, Execution, Deployment > Build Tools > Gradle (Android Studio > Preferences… > Build, Execution, Deployment > Build Tools > Gradle on a Mac). Under Gradle JDK, choose the Embedded JDK option. Click OK.

Read more