Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which Java JDK should I install for the use of Android Studio

I want to install Android Studio and I saw that it is recommended to also install the Java JDK. The thing that I don't understand is that a lot of people are recommending the Java SE Development Kit 8 but the latest one is 13. Why would I use 8 instead of 13? Can anyone tell me the exact version of JDK that should be used for Android Studio?

Thanks in advance.

like image 863
Loeli Avatar asked Oct 14 '19 14:10

Loeli


1 Answers

The official doc says:

Set the JDK version

A copy of the latest OpenJDK comes bundled with Android Studio 2.2 and higher, and this is the JDK version we recommend you use for your Android projects. To use the bundled JDK, do the following:

  1. Open your project in Android Studio and select File > Project Structure in the menu bar.
  2. In the SDK Location page and under JDK location, check the Use embedded JDK checkbox.
  3. Click OK.

So there is no need to install a standalone JDK if you are not planning to do Java Devs other than Android App.

like image 88
Kevin Avatar answered Sep 29 '22 02:09

Kevin