breautek commented on issue #1826: URL: https://github.com/apache/cordova-android/issues/1826#issuecomment-3079783425
> It looks like we're using gradle 8.13. We were using 8.14.3, but backed it down to 8.13 when we first encountered the issue. And we're building release for Android SDK 36. It also appears that our Android Gradle Plugin version is 8.7.3 which apparently has not been tested with Android SDK 36. Cordova prepares the gradle environment based on variables. If you're attempting to manually update the gradle config to use a different gradle wrapper or AGP versions, cordova will reset them the next time it prepares the project. This is because it's honouring the configs (or their defaults) according to the project's `config.xml` The full config.xml reference can be found [here](https://cordova.apache.org/docs/en/12.x-2025.01/config_ref/index.html) but what you're looking for is the [preferences](https://cordova.apache.org/docs/en/12.x-2025.01/config_ref/index.html#preference) `GradleVersion` and `AndroidGradlePluginVersion`, which will set the gradle wrapper and AGP version respectively. If you're trying to target SDK 36, then the following preferences will also be helpful: - android-buildToolsVersion - android-compileSdkVersion - android-targetSdkVersion Note that SDK 36 is not supported by Cordova at this time, and simply updating these preferences may not get you all the way. Often times AGP introduces breaking changes that requires other gradle build script changes. SDK 36 support will be available in the next major release, cordova-android@15, which can be tested by adding the nightly version: ``` cordova platform remove android cordova platform add android@nightly ``` This doesn't appear to be an actual bug. So I'll be closing this issue. If you encounter any issues with nightly however, please do create an issue. It will help us resolve things before the actual release -- 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]
