Skip to content

bug: Manifest merger failed : Attribute property#android.adservices.AD_SERVICES_CONFIG conflict #353

@braincomb

Description

@braincomb

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/admob v7.0.3 in Android project
  • Install @capacitor-firebase/authentication v7.2.0 that also implements the facebook-core v18.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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions