Is it possible to use Java 8 for Android development?

后端 未结 26 1983
礼貌的吻别
礼貌的吻别 2020-11-21 22:50

Searching the web, it is not clear if Java 8 is supported for Android development or not.

Before I download/setup Java 8, can some one point me at any \"official\" d

26条回答
  •  别跟我提以往
    2020-11-21 23:05

    Yes. We will use Java 8 soon!

    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. With this new direction, existing tools and plugins dependent on the Java class file format should continue to work. Moving forward, Java 8 language features will be natively supported by the Android build system. 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.

    https://android-developers.googleblog.com/2017/03/future-of-java-8-language-feature.html

提交回复
热议问题