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.
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.