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.

Problem with google mobile ads errors(make the app exit )

See original GitHub issue

Bug report

Problem with Google mobile ads when i add Bannerad i get error 2 as you see in the picture below :

and i have a good connection .

Code screenshots

adfailed2

then i wanted to use Intertialad and Rewardedvideoad but when i click on button for exemple to see the ads the app exit and i lose connection to device as you can see in the picture below:

problempig

so This is my initstate :

initstate my main.dart:

maindart

What i tried : flutter clean upgrade flutter upgrade android studio open new project upgrade gradle to latest version nothing happen … looking for solution thanks .

Flutter doctor

[√] Flutter (Channel stable, 2.0.4, on Microsoft Windows [Version 10.0.18363.1500], locale en-US)
    • Flutter version 2.0.4 at D:\src\flutter
    • Framework revision b1395592de (2 weeks ago), 2021-04-01 14:25:01 -0700
    • Engine revision 2dce47073a
    • Dart version 2.12.2

[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at D:\everythingAndroid\Android_SDK
    • Platform android-30, build-tools 30.0.3
    • ANDROID_SDK_ROOT = D:\everythingAndroid\Android_SDK
    • Java binary at: D:\AndroidStudio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Android Studio (version 4.1.0)
    • Android Studio at D:\AndroidStudio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[√] Connected device (2 available)
    • Chrome (web) • chrome • web-javascript • Google Chrome 89.0.4389.128
    • Edge (web)   • edge   • web-javascript • Microsoft Edge 89.0.774.63

• No issues found!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:10

github_iconTop GitHub Comments

1reaction
dsdsharmacommented, Apr 25, 2021

I am having the same issue with interstitial ads, banner ads are working fine but when i try to load interstitial ad it crashes the app. I am getting an error log like this Screenshot 2021-04-25 230412

0reactions
github-actions[bot]commented, Jan 10, 2022

Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. If you find this problem please file a new issue with the same description, what happens, logs and the output of ‘flutter doctor -v’. All system setups can be slightly different so it’s always better to open new issues and reference the related ones. Thanks for your contribution.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Resolve common onboarding issues - Google AdMob Help
What you can do: Make sure your SDK and device platform match. ... What this means: The ad unit ID isn't valid for...
Read more >
A pretty big issue with Interstitials. The Close (X) button doesn ...
Inside Xcode I opened Swift > Admob > InterstitialExample. I try to run it, but get the error of "No such module 'GoogleMobileAds'...
Read more >
We Fix Your AdMob Policy Violations - YouTube
Have a question related to your AdMob policy violation? In this live stream, we will solve your problems live!Appbroda is Google's channel ...
Read more >
How to Fix All Apps Keeps Stopping Error in Android Phone ...
Fix Apps Keeps Stopping Error in Android PhoneWatch this latest fix... https://www.youtube.com/watch?v=v7OUS29IYnc#KeepsStopping #Android ...
Read more >
How to Fix Google Keeps Stopping Error in Android Phone!!
How to fix " google keeps stopping" error in android phone. Google App keep crashing on your Android phone. If you've been seeing...
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