breautek commented on issue #1409: URL: https://github.com/apache/cordova-android/issues/1409#issuecomment-1081935794
> I updated to V11 and Java 18 but I cannot build I get this error: Afaik, Google only supports Java 8 to 11 on API 30 or lower, and requires Java 11 on API 31 or later. That error you posted was on a gradle file, and Gradle 7.x only supports up to Java 17. [Gradle](https://docs.gradle.org/current/userguide/compatibility.html) explicitly states that Java 18 is not supported yet. It's not Cordova that sets these requirements, and like Tim said, as of cordova-android@10 we removed any java version checks that was applied in previous cordova-android versions. If you can't get/run Java 11 on M1 macs, then that is a problem Cordova cannot solve. Perhaps this [SO Answer](https://stackoverflow.com/a/68651120/4685664) will help you get a Java 11 implementation via OpenJDK running on M1 mac, if you're fine with OpenJDK licensing. -- 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]
