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?
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