
In API level 24 and below, but not ElementType.TYPE_USE or Type annotation information is only available at compile time,Īnd not at runtime. Note that Android does not support the serialization of The following language featuresĪre now available on any API level: Java 8 language feature When building your app using Android Gradle plugin 3.0.0 and higher, the pluginĭoes not support all Java 8 language features. TargetCompatibility = JavaVersion.VERSION_1_8 SourceCompatibility = JavaVersion.VERSION_1_8 TargetCompatibility JavaVersion.VERSION_1_8 SourceCompatibility JavaVersion.VERSION_1_8



language features (either in its source code or Configure only for each module that uses Java 8
