firebase / firebase-cpp-sdk

Firebase C++ SDK
http://firebase.google.com
Apache License 2.0
271 stars 110 forks source link

i have error after android studio update #1545

Open mumin16 opened 4 months ago

mumin16 commented 4 months ago

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.

google-oss-bot commented 4 months ago

I found a few problems with this issue:

JOsacky commented 4 months ago

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

ytheekshana commented 4 months ago

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

This is not a fix, Its a workaround.

JOsacky commented 3 months ago

@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.

gzjaychen commented 2 months ago

I had the same problem after upgrading to AGP 8.3.0

santyas commented 1 month ago

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

mdthansil commented 1 month ago

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>

...

`