breautek commented on issue #1412:
URL: 
https://github.com/apache/cordova-android/issues/1412#issuecomment-1089575245

   TL;DR; It's recommended to use Java 11.
   
   Java 18 isn't supported by 
[Gradle](https://docs.gradle.org/current/userguide/compatibility.html) which is 
one of the build tooling systems used by Android, and java projects in general.
   
   Cordova-android@10 uses gradle 7.1.1, so in terms of Gradle the maximum 
supported Java is Java 16.
   
   Android tooling doesn't provide a compatibility matrix but it is 
[recommended](https://developer.android.com/studio/releases/gradle-plugin) that 
Java 11 is used. Not sure if later versions are supported.
   
   Cordova-android@10 will accept any java version as configured by your 
environment. It will either work or crash depending on the compatibility of 
your java implementation and the underlying android build tools. All advice 
given is assuming that you're using the latest cordova-android platform 
release. For this reason I'm closing this as not-a-bug.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to