firebase / firebase-cpp-sdk

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

i have error after android studio update #1545

Open mumin16 opened 8 months ago

mumin16 commented 8 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 8 months ago

I found a few problems with this issue:

JOsacky commented 8 months ago

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

ytheekshana commented 8 months ago

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

This is not a fix, Its a workaround.

JOsacky commented 8 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 6 months ago

I had the same problem after upgrading to AGP 8.3.0

santyas commented 6 months ago

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

mdthansil commented 5 months 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>

...

`

choanhemnhe 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>

...

`

This will fix the error. Thanks mdthansil

hannesa2 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>

...

From where should this @xml/gma_ad_services_config come from ?