Is it possible to use Java 8 for Android development?

后端 未结 26 2321
礼貌的吻别
礼貌的吻别 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:10

    Google just announced that Java 8 will be natively support by Android and that the Jack toolchain will deprecate:

    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.

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

提交回复
热议问题