skip to Main Content

Error after adding google_mobile_ads sdk in flutter

I added the google_mobile_ads sdk v5.0.0 in my flutter project. Now when I run the project I get the following error X:<project-name>androidappsrcdebugAndroidManifest.xml:92:13-59 Error: Attribute property#android.adservices.AD_SERVICES_CONFIG@resource value=(@xml/gma_ad_services_config) from [com.google.android.gms:play-services-ads-lite:23.0.0] AndroidManifest.xml:92:13-59 is also present at [com.google.android.gms:play-services-measurement-api:21.5.1] AndroidManifest.xml:32:13-58 value=(@xml/ga_ad_services_config). Suggestion: add 'tools:replace="android:resource"' to…

VIEW QUESTION

Flutter application crsashes after adding google_mobile_ads

After adding google_mobile_ads package in my flutter app the application crashes without showing anything. I have added the required text in the androidManifest file. androidManifest.xml file: <application android:label="ad_prac" android:name="${applicationName}" android:icon="@mipmap/ic_launcher"> <activity android:name=".MainActivity" android:exported="true" android:launchMode="singleTop" android:theme="@style/LaunchTheme" android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode" android:hardwareAccelerated="true" android:windowSoftInputMode="adjustResize"> <meta-data android:name="io.flutter.embedding.android.NormalTheme"…

VIEW QUESTION
Back To Top
Search