How to specify the JDK version in Android Studio?
Use Android Studio to specify the JDK version by doing the following steps:
1. Open android studio.
2. Go to Project Settings then Select File from the navigation bar.
3. In the Project window, select Project then in Gradle Settings section where you can specify the Gradle JDK. Choose the JDK version from the menu.
4. After choosing the appropriate JDK location, click Apply and then OK to save the modifications.
Windows/Linux to pull up the Settings dialog. Then, go to “Build, Execution, Deployment > Build Tools > Gradle”. In there, you can set the JDK location.