3 ms·
Unfortunately a lot of people don’t have access to Java 8 on the largest customer facing Java platform (android). The java.time libraries are available on andr
by charrondev 6y ago
Unfortunately a lot of people don’t have access to Java 8 on the largest customer facing Java platform (android).
The java.time libraries are available on android starting API level 26 https://developer.android.com/reference/java/time/package-summary https://developer.android.com/reference/java/time/package-su...
That is android 11, released in September of 2020 which is not widely distributed.
Does anyone know why the delay? It looks like Java 8 language features finally became compatible through some compatibility layer in Gradle 4.
Was it because of the lawsuits?
- vips7L 6y agoPersonally, I don't consider Android to be Java and I am quite happy that Google is pushing Kotlin now instead.
- ohgodplsno 6y agoBasically, yes. Google has been awfully slow at implementing some Java 8+ features. Their current solution is D8 desugaring, which basically rewites all the APIs into JDK8 compatible code.
- EddieRingle 6y agoThis is incorrect. You can use APIs like java.time on any version by using desugaring: https://developer.android.com/studio/write/java8-support#library-desugaring https://developer.android.com/studio/write/java8-support#lib...