firebase-cpp-sdk icon indicating copy to clipboard operation
firebase-cpp-sdk copied to clipboard

i have error after android studio update

Open mumin16 opened this issue 11 months ago • 9 comments

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:22.6.0] AndroidManifest.xml:92:13-59 is also present at [com.google.android.gms:play-services-measurement-api:21.5.0] AndroidManifest.xml:32:13-58 value=(@xml/ga_ad_services_config). Suggestion: add 'tools:replace="android:resource"' to element at AndroidManifest.xml to override.

mumin16 avatar Feb 29 '24 19:02 mumin16

I found a few problems with this issue:

  • I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
  • This issue does not seem to follow the issue template. Make sure you provide all the required information.

google-oss-bot avatar Feb 29 '24 19:02 google-oss-bot

Edit: you can work around the issue by following this stack overflow: https://stackoverflow.com/a/78086604/972311

JOsacky avatar Mar 01 '24 16:03 JOsacky

The fix is here: https://stackoverflow.com/a/78086604/972311

This is not a fix, Its a workaround.

ytheekshana avatar Mar 02 '24 13:03 ytheekshana

@ytheekshana thanks for pointing that out, I should be more precise with my language. The stackoverflow post is a workaround and the root cause should still be fixed. I edited my post to reflect that

The fix is here: https://stackoverflow.com/a/78086604/972311

This is not a fix, Its a workaround.

JOsacky avatar Mar 04 '24 18:03 JOsacky

I had the same problem after upgrading to AGP 8.3.0

gzjaychen avatar Apr 10 '24 01:04 gzjaychen

https://issuetracker.google.com/issues/327696048 It's been reported but still no solution

santyas avatar May 04 '24 12:05 santyas

I had same issue. but fixed by adding the following lines in manifest

`<manifest ...

<application
    ...

    <property
        android:name="android.adservices.AD_SERVICES_CONFIG"
        android:resource="@xml/gma_ad_services_config"
        tools:replace="android:resource" />
    
    ...
</application>

...

`

mdthansil avatar May 12 '24 12:05 mdthansil

I had same issue. but fixed by adding the following lines in manifest

`<manifest ...

<application
    ...

    <property
        android:name="android.adservices.AD_SERVICES_CONFIG"
        android:resource="@xml/gma_ad_services_config"
        tools:replace="android:resource" />
    
    ...
</application>

...

`

This will fix the error. Thanks mdthansil

choanhemnhe avatar Sep 14 '24 16:09 choanhemnhe

I had same issue. but fixed by adding the following lines in manifest

`<manifest ...

<application
    ...

    <property
        android:name="android.adservices.AD_SERVICES_CONFIG"
        android:resource="@xml/gma_ad_services_config"
        tools:replace="android:resource" />
    
    ...
</application>

...

From where should this @xml/gma_ad_services_config come from ?

hannesa2 avatar Sep 17 '24 05:09 hannesa2