You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After adding cordova-plugin-firebase-analytics, running cordova build android results in the following error:
> Configure project :app
Adding classpath: com.google.gms:google-services:4.4.0
> Task :app:processDebugMainManifest FAILED
/Users/xxxxy/Documents/repos/appx/platforms/android/app/src/main/AndroidManifest.xml:32:13-58 Error:
Attribute property#android.adservices.AD_SERVICES_CONFIG@resource value=(@xml/ga_ad_services_config) from [com.google.android.gms:play-services-measurement-api:21.5.0] AndroidManifest.xml:32:13-58
is also present at [com.google.android.gms:play-services-ads-lite:23.0.0] AndroidManifest.xml:92:13-59 value=(@xml/gma_ad_services_config).
Suggestion: add 'tools:replace="android:resource"' to <property> element at AndroidManifest.xml to override.
See https://developer.android.com/r/studio-ui/build/manifest-merger for more information about the manifest merger.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugMainManifest'.
> Manifest merger failed : Attribute property#android.adservices.AD_SERVICES_CONFIG@resource value=(@xml/ga_ad_services_config) from [com.google.android.gms:play-services-measurement-api:21.5.0] AndroidManifest.xml:32:13-58
is also present at [com.google.android.gms:play-services-ads-lite:23.0.0] AndroidManifest.xml:92:13-59 value=(@xml/gma_ad_services_config).
Suggestion: add 'tools:replace="android:resource"' to <property> element at AndroidManifest.xml to override.
The issue is due to a conflict in AndroidManifest.xml between android.adservices.AD_SERVICES_CONFIG resources: @xml/ga_ad_services_config from play-services-measurement-api and @xml/gma_ad_services_config from play-services-ads-lite. This causes the manifest merger to fail.
I’ve confirmed that removing cordova-plugin-firebase-analytics resolves the issue. Could you advise on how to handle this resource conflict in the manifest? Thank you!
The text was updated successfully, but these errors were encountered:
Hello,
After adding cordova-plugin-firebase-analytics, running cordova build android results in the following error:
The issue is due to a conflict in AndroidManifest.xml between android.adservices.AD_SERVICES_CONFIG resources: @xml/ga_ad_services_config from play-services-measurement-api and @xml/gma_ad_services_config from play-services-ads-lite. This causes the manifest merger to fail.
I’ve confirmed that removing cordova-plugin-firebase-analytics resolves the issue. Could you advise on how to handle this resource conflict in the manifest? Thank you!
The text was updated successfully, but these errors were encountered: