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

   Gradle & Android SDK does not support Java 18, therefore Cordova doesn't 
support Java 18.
   
   Gradle itself claims support for up to Java 17, but Android SDK doesn't 
define what JDKs it supports. Instead they do recommend using the Java JDK that 
is shipped with Android Studio, which currently is a Java 11 implementation. As 
such, Cordova is only tested with Java 11. (Current release is actually tested 
against Java 8)
   
   The error seems to indicate some kind of incompatibility with the Java SDK, 
so therefore I'd recommend try using Java 11. An implementation should be 
shipped with your Android Studio's installtion inside `<android studio 
path>/jre` which you can set your `PATH` and `JAVA_HOME` environment variables 
accordingly.
   
   Closing this issue as won't fix due to the reasons mentioned above. Should 
you encounter issues while using a JDK 11 implementation, please open a new 
issue with the details documented and we can proceed from there.


-- 
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