breautek commented on issue #1801: URL: https://github.com/apache/cordova-android/issues/1801#issuecomment-3047354928
> And according to gradle documentation this is implying we need JDK 22 to run with Gradle 8.7 (even though an earlier error output stated it needed to be JDK 17): https://docs.gradle.org/current/userguide/compatibility.html Gradle as a product itself supports a wide range of JDKs. It's the AGP (Android Gradle Plugin) that is often picky and requires a specific JDK. The safest bet is match the version (or use the actual version) that is shipped with Android Studio. So even if Gradle as of Gradle 8.14 supports JDK 24, the Android Gradle Plugin used to build android binaries might not. We do have recommended versions documented at https://cordova.apache.org/docs/en/dev/guide/platforms/android/index.html. Most of the settings found `cdv-gradle-config.json` is configurable via preferences (see https://cordova.apache.org/docs/en/dev/config_ref/index.html). If you're manipulating the json file manually, it will get reset on the next platform prepare. > Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0 This message we see on every major gradle/AGP release and historically it's always AGP using deprecated gradle features and not your application or cordova framework. It can be safely ignored. > In the cdv-gradle-config.json file I hard set `"GRADLE_PLUGIN_GOOGLE_SERVICES_VERSION":"4.4.2", and compiled my app again. It still failed, but back in that json file the plugin version was set back to 4.3.15. It needs to be set in the `config.xml` using the `GradlePluginGoogleServicesVersion` preference. 4.4.2 is the default for cordova-android@14 though. e.g.: `<preference name="GradlePluginGoogleServicesVersion" value="4.4.2" />` -- 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]
