You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2022/06/03 21:50:31 UTC

[GitHub] [cordova-android] breautek commented on issue #1440: Unsupported class file major version 61

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: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org