Does Android Studio 3 support Java 9 for Android development? If so, what features of Java 9 are supported?

后端 未结 3 1499
天命终不由人
天命终不由人 2020-12-15 02:34

I\'m going to install Android Studio 3 in order to develop an Android application.

I\'d like to know if it is possible to use Java 9 for Android development? If so,

3条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-15 03:25

    UPDATE: as of https://jakewharton.com/androids-java-8-support/, it seems like this should almost work by now (as well as for Java 9, 10, 11, and 12). Or just use Kotlin.

    To help the last steps along, you can star the issue.


    As of now, the Android SDK does not even support java 8 completely:

    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. This page describes the Java 8 language features you can use, how to properly configure your project to use them, and any known issues you may encounter. [emphases mine]

    That probably needs to be supported completely before Java 9 is approached.

提交回复
热议问题