cordova-android 14: Some warnings in Android Studio #530
Replies: 3 comments 4 replies
-
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 The main breaking change between AGP 8.6 and 8.9 I think is Gradle version requirement, so you could try: config.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. |
Beta Was this translation helpful? Give feedback.
-
Sorry, I didn’t understand the difference between „Gradle“ and „Android Gradle Plugin“ but now I understand (googled it :)) I wanted to ask for the used Android Gradle Plugin version. I see now by your link, it’s 8.7.3. But now I‘m wondering why Android Studio says „Android Gradle Plugin version 8.3.0 has an upgrade available“. Why it says „8.3.0“, though cordova-android specifies 8.7.3? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Hi,
when i add
cordova-android
14 bycordova platform add https://github.com/apache/cordova-android#14.0.0
and open it in the latest Android Studio (Meerkat | 2024.3.1), i get some warnings:
1. "Duplicate content roots detected"
2. Gradle update recommendation to 8.9.0
Upgrading to 8.9.0 is not possible, it says:
Could AGP already set to 8.9.0?
Beta Was this translation helpful? Give feedback.
All reactions