5 ms·
I thought the Android team is switching to native Java 8 support anyway? https://android-developers.googleblog.com/2017/03/future-of-java-8-language-feature.ht
by leastangle 9y ago
I thought the Android team is switching to native Java 8 support anyway?
https://android-developers.googleblog.com/2017/03/future-of-java-8-language-feature.html https://android-developers.googleblog.com/2017/03/future-of-...
- vesinisa 9y agoThat targets only Android 7 and above (and even then a subset of the features). If I understand correctly, this actually allows you to target any Android version at or above SDK 15 (Android 4.0.3), because it monkey patches your code to replace part of the standard library with external libraries. Then, when you decide to deprecate Android 6 support one day, you should be able to smoothly transition to fully native Java 8.
- pulse7 9y agoAccording to this table: https://developer.android.com/studio/preview/features/java8-support.html#supported_features https://developer.android.com/studio/preview/features/java8-... you can use Lambda expressions and Method References with any Android version... but without Java 8 libraries...
- pjmlp 9y agoKind of. They are supporting Java 8 language features depending on the Android platform version. Some Java 8 library APIs have been adopted, but require the latest Android versions. Finally, the JVM bytecodes like invoke dynamic and method handles aren't supported thus making libraries that use them, unusable on Android devices.
- MrZipf 9y agoComing in O by the looks of it: https://source.android.com/devices/tech/dalvik/dalvik-bytecode https://source.android.com/devices/tech/dalvik/dalvik-byteco...