GitHub user breautek added a comment to the discussion: cordova-android 14: 
Some warnings in Android Studio

AGP version is controlled through a preference but they usually have breaking 
changes so simply updating it to 8.9.0 will probably break the project.

As for the duplicate content roots warning, I've seen that warning before in my 
non-cordova projects. I'm pretty sure I was already running AGP 8.9.0 when I've 
seen it, but `Android Studio Meerkat | 2024.3.1` doesn't seem to be producing 
the warning for me anymore. Not 100% sure if AGP 8.9.0 actually fixed the 
warning.

The main breaking change between AGP 8.6 and 8.9 I think is Gradle version 
requirement, so you could try:

config.xml:
```xml
<platform name="android">
    <preference name="GradleVersion" value="8.11.1" /> <!-- Or choose a later 
gradle version if desired, but it must be within the 8.x major release -->
    <preference name="AndroidGradlePluginVersion" value="8.9.0" />
</platform>
```

Running this configuration will make it hard to provide support should it 
introduce other issues.

AGP 8.9 is mainly for SDK 36 support which is still in early preview, so I 
don't foresee cordova-android using it until cordova-android@15 because 
cordova-android@14 is already going through the release process.

GitHub link: 
https://github.com/apache/cordova/discussions/530#discussioncomment-12601768

----
This is an automatically sent email for issues@cordova.apache.org.
To unsubscribe, please send an email to: issues-unsubscr...@cordova.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