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 moreWhere 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 moreHow do I find my JDK path?
Start menu > Computer > System Properties > Advanced System Properties. Then open Advanced tab > Environment Variables and in system variable try to find JAVA_HOME . This gives me the jdk folder.
Read more