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 moreHow do I know if JDK is installed Android Studio?
To get your JDK location, run /usr/libexec/java_home -v 11 in terminal . Send 1.7 for Java 7, 1.8 for Java 8, or 11 for Java 11.3 Haz 2015
Read moreCan I use Java 9 in Android Studio?
You can’t use Java 9 , Android only supports till Java 8 . You should use the JDK version that comes with Android Studio, NO need for side alone JDK.
Read moreWhich JDK version should I use for Android Studio?
Set the JDK version A copy of the latest OpenJDK comes bundled with Android Studio 2.2 and higher , and this is the JDK version we recommend you use for your Android projects.
Read more