Java 8 language Feature Support Update (reprint)

Source: Internet
Author: User

A few days ago, we released the Android Studio 2.4 Preview 6. Now, in the JAVAC/DX compilation path, the Java 8 language feature will be supported by the Android build system. Android Studio's Gradle plugin now handles "de-icing" Java 8-class files, preserving only class files that are compatible with Java 7, so you can use Java 8 lambda, method references, and other features.

For developers trying the Jack compiler, we now support the same set of Java 8 language features, but build faster. You can use Java 8 language features with bytecode-dependent tools, including Instant Run. Libraries written with Java 8 are also supported.

We initially added the Java 8 de-icing feature in Android Studio 2.4 Preview 4. Preview 6 contains fixes to important issues related to support for Java 8 language features. Many of these fixes are based on error reports that you submit. We thank you for helping the community improve Android development tools!

Experimenting with Java 8 language features in your Android project is simple. Simply download Android Studio 2.4 Preview 6 and update the project's target and source compatibility to be compatible with Java version 1.8. You can find more information in our preview documentation.

I hope you love lambda!

Java 8 language Feature Support Update (reprint)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.