Hi, who has such a build error, don't worry, it's the latest version of FireBase plugin conflicts with AdMob.
When building via cordova, you need to set the version manually (cordova plugin add cordova-plugin-firebase-analytics --variable ANDROID_FIREBASE_BOM_VERSION=“32.4.1”).
Those who have no extraneous plugins should have no problems.
_____
Error: Checking Java JDK and Android SDK versions
ANDROID_HOME=~~/androidSDK (recommended setting)
ANDROID_SDK_ROOT=~~/androidSDK (DEPRECATED)
Using Android SDK: ~~/androidSDK
/> Task :wrapper
BUILD SUCCESSFUL in 680ms
1 actionable task: 1 executed
Subproject Path: CordovaLib
Subproject Path: app
Library expects a BoM package: com.google.firebase:firebase-analytics
/> Configure project :app
Adding classpath: com.google.gms:google-services:4.4.0
/> Task :app:preBuild UP-TO-DATE
/> Task :app:preDebugBuild UP-TO-DATE
/> Task :app:mergeDebugNativeDebugMetadata NO-SOURCE
/> Task :app:generateDebugBuildConfig
/> Task :CordovaLib:preBuild UP-TO-DATE
/> Task :app:javaPreCompileDebug
/> Task :CordovaLib:preDebugBuild UP-TO-DATE
/> Task :CordovaLib:writeDebugAarMetadata
/> Task :app:generateDebugResValues
/> Task :app:checkDebugAarMetadata
/> Task :app:processDebugGoogleServices
/> Task :CordovaLib:generateDebugResValues
/> Task :CordovaLib:generateDebugResources
/> Task :CordovaLib:packageDebugResources
/> Task :app:mapDebugSourceSetPaths
/> Task :app:generateDebugResources
/> Task :app:packageDebugResources
/> Task :app:createDebugCompatibleScreenManifests
/> Task :app:extractDeepLinksDebug
/> Task :CordovaLib:extractDeepLinksDebug
/> Task :app:parseDebugLocalResources
/> Task :CordovaLib:processDebugManifest
/> Task :CordovaLib:compileDebugLibraryResources
/> Task :app:mergeDebugResources
/> Task :app:processDebugMainManifest FAILED
See https:/~~/manifest-merger for more information about the manifest merger.
20 actionable tasks: 20 executed
~~/AndroidManifest.xml:92:13-59 Error:
Attribute property#android.adservices.AD_SERVICES_CONFIGgwh@resource value=(@~~/gma_ad_services_config) from [com.google.android.gms:play-services-ads-lite:23.2.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=(@~~/ga_ad_services_config).
Suggestion: add 'tools:replace="android:resource"' to <property> element at AndroidManifest.xml to override.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugMainManifest'.
/> Manifest merger failed : Attribute property#android.adservices.AD_SERVICES_CONFIGgwh@resource value=(@~~/gma_ad_services_config) from [com.google.android.gms:play-services-ads-lite:23.2.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=(@~~/ga_ad_services_config).
Suggestion: add 'tools:replace="android:resource"' to <property> element at AndroidManifest.xml to override.
* Try:
/> Run with --stacktrace option to get the stack trace.
/> Run with --info or --debug option to get more log output.
/> Run with --scan to get full insights.
/> Get more help at https:/~~/help.gradle.org.
BUILD FAILED in 1s
Command failed with exit code 1: ~~/gradlew cdvBuildDebug