question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

java.lang.RuntimeException: Unable to get provider com.google.android.gms.ads.MobileAdsInitProvider: java.lang.IllegalStateException

See original GitHub issue

I 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:closed
  • Created a year ago
  • Comments:14

github_iconTop GitHub Comments

2reactions
NemanjaCvetkovic1993commented, Nov 24, 2022

I was using the same ad id in the manifest and code.

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.

1reaction
UmairSaqibBhuttacommented, Nov 23, 2022

I was using the same ad id in the manifest and code.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to get provider com.google.android.gms.ads ...
This happened due to updated AdMob SDK. Now you need to add appID in your manifest file. <application> .
Read more >
Unable to get provider com.google.android.gms.ads ...
MobileAdsInitProvider : java.lang.IllegalStateException: Hey! I have an app in Xamarin.Forms (Android & iOS), but this only concerns the Android ...
Read more >
Unable to get provider com google android gms ads ...
java. lang. RuntimeException : Unable to get provider com. google. android. gms. ads. MobileAdsInitProvider : java. lang. IllegalStateException :
Read more >
Crash - The Google Mobile Ads SDK was initialized incorrectly.
RuntimeException : Unable to get provider com.google.android.gms.ads.MobileAdsInitProvider: java.lang.IllegalStateException: 10-25 00:28:35.292 26017 26017 E ...
Read more >
Question - java.lang.RuntimeException: Unable to get provider
java.lang.RuntimeException: Unable to get provider com.google.android.gms.ads.MobileAdsInitProvider: java.lang.IllegalStateException:
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found