About the Java Development Kit

Hi,

I’m reading the free sample of this book on Google Play Books. On the part of Downloading and Installing Android Studio, I found that it’s still recommended to install Java Development Kit before installing Android Studio. But from Android Studio 2.2, OpenJDK comes bundled with it.

So should we still install the Java Development Kit before installing Android Studio, or just use the built-in OpenJDK?

You can use the built in OpenJDK. I didn’t realize that they bundle it in now.

Thanks for letting me know.

If anyone else is curious, there’s more info here: http://tools.android.com/tech-docs/configuration/osx-jdk

Android Studio version 2.2 and higher comes with the latest OpenJDK
embedded in order to have a low barrier to entry for beginners.

It is, however, recommended to have the JDK installed on your own as
you are then able to update it independent of Android Studio.

Therefore, you can install JDK 1.8, and if you are working with an
Android API < 24, then you’ll need to compile with Java 7 or do some
extra steps to enable Java 8 features. (Note: Java 8 support is relatively new).

Android Studio 3.0 and later supports all Java 7 language features and a subset of Java 8 language features