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.
Read moreWhich version of JDK should I install?
Conclusion. If you’re just getting your feet wet with Java then installing either Java SE 8 or Java SE 11 is your best bet. While other editions like EE add extra functionality, the SE has all of the essential libraries you need.
Read more