generated from capacitor-community/.github
-
Notifications
You must be signed in to change notification settings - Fork 86
Open
Description
Describe the bug
This error pops up during build in Android Studio:
Manifest merger failed : Attribute property#android.adservices.AD_SERVICES_CONFIG@resource value=(@xml/gma_ad_services_config) from [com.google.android.gms:play-services-ads-lite:23.0.0] AndroidManifest.xml:92:13-59
is also present at [com.facebook.android:facebook-core:18.0.0] AndroidManifest.xml:57:13-55 value=(@xml/ad_services_config).
Suggestion: add 'tools:replace="android:resource"' to <property> element at AndroidManifest.xml to override
Overriding play-services-ads to latest version seems to do the trick for me, since the default 23.0.0 is super old:
implementation "com.google.android.gms:play-services-ads:24.2.0"To Reproduce
- Install
@capacitor-community/admobv7.0.3 in Android project - Install
@capacitor-firebase/authenticationv7.2.0 that also implements thefacebook-corev18.0.0 SDK. - Perform build in Android Studio
These two seem to conflict generating the error above.
Expected behavior
No errors, no conflicts.
Possible solution/workaround
As stated above, overriding version to latest seems to do the trick for:
Overriding play-services-ads to latest version seems to do the trick for me, since the default 23.0.0 is super old:
implementation "com.google.android.gms:play-services-ads:24.2.0"Metadata
Metadata
Assignees
Labels
No labels