As official doc says: Android Studio 3.0 and later supports all Java 7 language features and a subset of Java 8 language features that vary by platform version so JDK 7 is fully supported, and if you want to use some JDK 8 features, you should Make the appropriate settings.