To use the bundled JDK, do the following: Open your project in Android Studio and select File > Project Structure in the menu bar. In the SDK Location page and under JDK location, check the Use embedded JDK checkbox. Click OK.
Can I use JDK 16 in Android Studio?
To use the bundled JDK, do the following: Open your project in Android Studio and select File > Project Structure in the menu bar. In the SDK Location page and under JDK location, check the Use embedded JDK checkbox. Click OK.