breautek commented on issue #1760: URL: https://github.com/apache/cordova-android/issues/1760#issuecomment-2598527411
> Which for me is Gradle 8.9 (gradle wrapper is actually configured to use 8.7 so I think that shows it's not using the "correct" gradle version) I think perhaps if Cordova CLI as part of the `prepare` step initialized the gradle wrapper and copied/moved the wrapper to the proper folder, then the IDE would just pick up the wrapper. This way it can initialise the wrapper using nearly any gradle version using the `:tools` module, which doesn't depend on AGP and is not restricted to gradle requirements of AGP, but then have the IDE still use the expected wrapper. Right now Cordova only sets up the wrapper on build (e.g. `cordova build android`). You can easily test if this will work with Iguana if you run the Cordova CLI build command. `platforms/android/tools/` should now have the gradle wrapper. ``` cordova create testapp cd testapp cordova platform add android@13 cordova build android cd platforms/android cp -r tools/gradle ./ cp tools/gradlew* ./ ``` Now open the project in Android Studio Iguana, and you should see it using Gradle 8.7 and I assume it would build just find on that IDE version since Android does state the IDE supports AGP 8.3. If that works, I can look into making this improvement in the CLI so that the wrapper is placed in the proper location for IDE usage. -- 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