What jvm does everyone target their kotlin android...
# android
b
What jvm does everyone target their kotlin android apps to
z
1.8 for all new stuff, along with min sdk of 21.
b
The Kotlin compiler supports the JVM 9, 10, 11, and 12 bytecode versions as target since Kotlin 1.3.30
The advantage is that you will automatically benefit from additional bytecode optimizations in future versions of the Kotlin compiler
https://stackoverflow.com/questions/52888341/does-kotlin-support-java-11
I was doing the same, just left it at 1.8. Wanted to see if people knew about these “optimizations”
z
Does R8 support those bytecode levels already? I think Jake gave a talk on this recently…
b
I dont think this talk has anything to do with R8, can you elaborate. I watched the first 5 minutes
z
I watched it a few months ago, but I thought he did talk about R8
this page mentions desugaring of _API_s above 8, but nothing about bytecode: https://developer.android.com/studio/write/java8-support
b
Ok i tried to compile to JDK14 and JDK13 and it failed. R8 only supports up to JDK12
Oh wait, jdk12 doesnt work either.