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

   The error is occurring on the gradle wrapper install which uses the system 
gradle.
   
   > General error during semantic analysis: Unsupported class file major 
version 61
   
   Means that it doesn't support the JDK environment, major version 61 is the 
internal java code for JDK 17. So this leads me to believe you're running a 
rather old version of gradle at the system level.
   
   What version is your system gradle? e.g. what does `gradle -v` print?
   
   Most of the time system gradle doesn't matter as long as it can install the 
wrapper, but if it's dated enough to fail on the wrapper install, it will be 
time to upgrade. I recommend using the latest gradle 8.x [release 
available](https://gradle.org/releases/), which at the time of writing, is 
version 8.9. Alternatively you can install 8.7 which I know **is** compatible 
with cordova-android@13. I think the absolute minimum is 8.5, due to AGP 
requirements.
   
   Let me know if this helps.


-- 
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-unsubscr...@cordova.apache.org

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


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

Reply via email to