java.lang.RuntimeException: Unable to get provider com.google.android.gms.ads.MobileAdsInitProvider: java.lang.IllegalStateException
See original GitHub issueI am using google_mobile_ads: ^1.3.0
in project and using correct ad ID but having this fetal exception.
Now I am running another GitHub project which also giving same issue.
All logs are:
FATAL EXCEPTION: main E/AndroidRuntime(15597): Process: com.example.flutter_google_ads, PID: 15597 E/AndroidRuntime(15597): java.lang.RuntimeException: Unable to get provider com.google.android.gms.ads.MobileAdsInitProvider: java.lang.IllegalStateException: E/AndroidRuntime(15597): E/AndroidRuntime(15597): ****************************************************************************** E/AndroidRuntime(15597): * The Google Mobile Ads SDK was initialized incorrectly. AdMob publishers * E/AndroidRuntime(15597): * should follow the instructions here: * E/AndroidRuntime(15597): * https://googlemobileadssdk.page.link/admob-android-update-manifest * E/AndroidRuntime(15597): * to add a valid App ID inside the AndroidManifest. * E/AndroidRuntime(15597): * Google Ad Manager publishers should follow instructions here: * E/AndroidRuntime(15597): * https://googlemobileadssdk.page.link/ad-manager-android-update-manifest. * E/AndroidRuntime(15597): ****************************************************************************** 2 E/AndroidRuntime(15597): E/AndroidRuntime(15597): at android.app.ActivityThread.installProvider(ActivityThread.java:6396) E/AndroidRuntime(15597): at android.app.ActivityThread.installContentProviders(ActivityThread.java:5938) E/AndroidRuntime(15597): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5853) E/AndroidRuntime(15597): at android.app.ActivityThread.access$1100(ActivityThread.java:199) E/AndroidRuntime(15597): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1650) E/AndroidRuntime(15597): at android.os.Handler.dispatchMessage(Handler.java:106) E/AndroidRuntime(15597): at android.os.Looper.loop(Looper.java:193) E/AndroidRuntime(15597): at android.app.ActivityThread.main(ActivityThread.java:6669) E/AndroidRuntime(15597): at java.lang.reflect.Method.invoke(Native Method) E/AndroidRuntime(15597): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) E/AndroidRuntime(15597): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858) E/AndroidRuntime(15597): Caused by: java.lang.IllegalStateException: E/AndroidRuntime(15597): E/AndroidRuntime(15597): ****************************************************************************** E/AndroidRuntime(15597): * The Google Mobile Ads SDK was initialized incorrectly. AdMob publishers * E/AndroidRuntime(15597): * should follow the instructions here: * E/AndroidRuntime(15597): * https://googlemobileadssdk.page.link/admob-android-update-manifest * E/AndroidRuntime(15597): * to add a valid App ID inside the AndroidManifest. * E/AndroidRuntime(15597): * Google Ad Manager publishers should follow instructions here: * E/AndroidRuntime(15597): * https://googlemobileadssdk.page.link/ad-manager-android-update-manifest. * E/AndroidRuntime(15597): ****************************************************************************** 2 E/AndroidRuntime(15597): E/AndroidRuntime(15597): at com.google.android.gms.internal.ads.zzacz.attachInfo(com.google.android.gms:play-services-ads-lite@@20.1.0:20)
Issue Analytics
- State:
- Created a year ago
- Comments:14
Top GitHub Comments
I made the exact same mistake. And it was such a dumb mistake, I should have known. But luckily, I didn’t spend much time figuring it out.
I was using the same ad id in the manifest and code.