
And to do that you would have the problem of backporting various Java-11-isms in the AS 4.2 codebase to work on Java 8.

So you would need to rebuild Android Studio from source code. For a start, the Android Studio 4.2 distro will contain classes compiled for Java 11, and a Java 8 JDK won't be able to load them due to classfile version mismatches. I have not found any description of workarounds to make Android Studio 4.2 work on Java 8, and I doubt that is technically possible. It is stated clearly in the documentation. How can I get android studio to use JDK 8?Īndroid Studio 4.2 onwards runs on Java 11. Java 7 or higher is required if you are targeting Android 5.0 and If you installed Java 8 JDK, then give it a try, if any problems appears try to set the compiler as 1.6 in Eclipse from window menu → Preferences → Java → Compiler. We're aiming to launch this as part of Android Studio in the coming weeks, and we wanted to share this decision early with you.įuture of Java 8 Language Feature Support on Android Eclipse Users:įor old developers who prefer Eclipse, google stops support Eclipse Android Developer tools Moving forward, Java 8 language features will be natively supported by the Android build system.

With this new direction, existing tools and plugins dependent on the Java class file format should continue to work. We've decided to add support for Java 8 language features directly into the current javac and dx set of tools, and deprecate the Jack toolchain.

To check which features of java 8 are supported Is it possible to use Java 8 for Android development? java 8Īndroid supports all Java 7 language features and a subset of Java 8 language features that vary by platform version.
