I'd really love to get into android development, but I'm loathe to give up some of the nicer language features in Java. What version of Java is android supporting? At least 8, right?
Kotlin libraries on the JVM cannot take advantage of JVM ecosystem, and require KMM to be portable across runtimes, or be constrained to the Android Java flavour.
It is like having a flavour of Typescript that only works on Edge.
This makes literally no sense since Android apps are built using not just Gradle but actually the entire Maven Central repo that all Java apps use.
Without any changes.
If what you said was remotely close to accurate, Android would have its own Maven Central repo.
Ah the Google's advocate at his best.
Lets not show the people that the libraries that happen to work are those that match Android Java capabilities.
Please show us how to use a possible Java 14 library from Maven Central on Android, using records or Panama interop.
Currently they support a Java 11 subset.
You can track them on AOSP Gerrit commits.
Apparently starting with Android 12 , ART can be updated via Play Store and they should provide better updates.
Although there is also the question how they were naive to think Java would never require updates, or possibly related to the Oracle dispute, which anyway proves the point that they behave just like Microsoft did with J++.