javaandroidjava-17java-16java-18

Is it possible to run Java16 code on Android


I know Java 16/17/18 is not compatible with java 8 (android), but is-it a way to generate byte-code for android to execute the program on my phone?

Or trans-code the java16 in an other language for android?

Note: I Use too many "records" to rewrite in java-8


Solution

  • You can't use the Jave 16.

    The last version is 11, you check this. https://developer.android.com/studio/releases/gradle-plugin?utm_source=android-studio-2020-3-1&utm_medium=studio-assistant-stable#java-11