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.

App crashes on some devices after ad shows

See original GitHub issue

Plugin Version

1.0.1

Steps to Reproduce

App crashes on InterstitialAd and BannerAd on some devices - in my case Motorola Moto G4 v.7 & Motorola Moto X Play v.7.1.1, on most devices it works properly. Probably that’s not only this flutter package’s issue as I found that Moto G4 crashes after ad shows in apps using googleads-mobile-unity (https://github.com/googleads/googleads-mobile-unity/issues/1171)

Logs
11:36:07 E AndroidRuntime : FATAL EXCEPTION: main
11:36:07 E AndroidRuntime : Process: com.flutter.watracker_stage_dm, PID: 10884
11:36:07 E AndroidRuntime : java.lang.LinkageError: Method java.lang.Object com.google.android.gms.internal.ads.jo3.zzb() overrides final method in class Lcom/google/android/gms/internal/ads/bo3; (declaration of 'com.google.android.gms.internal.ads.jo3' appears in /data/app/com.flutter.watracker_stage_dm-1/base.apk)
11:36:07 E AndroidRuntime : at com.google.android.gms.internal.ads.ev0.<init>()
11:36:07 E AndroidRuntime : at com.google.android.gms.internal.ads.dv0.zza()
11:36:07 E AndroidRuntime : at com.google.android.gms.internal.ads.kk2.a()
11:36:07 E AndroidRuntime : at com.google.android.gms.internal.ads.e82.q0()
11:36:07 E AndroidRuntime : at com.google.android.gms.internal.ads.e82.i3()
11:36:07 E AndroidRuntime : at com.google.android.gms.internal.ads.a70.i()
11:36:07 E AndroidRuntime : at com.google.android.gms.ads.c0.a.b()
11:36:07 E AndroidRuntime : at io.flutter.plugins.googlemobileads.h.f()
11:36:07 E AndroidRuntime : at io.flutter.plugins.googlemobileads.u.f()
11:36:07 E AndroidRuntime : at io.flutter.plugins.googlemobileads.f0.onMethodCall()
11:36:07 E AndroidRuntime : at g.a.c.a.j$a.a()
11:36:07 E AndroidRuntime : at io.flutter.embedding.engine.f.c.h()
11:36:07 E AndroidRuntime : at io.flutter.embedding.engine.f.c.i()
11:36:07 E AndroidRuntime : at io.flutter.embedding.engine.f.c.j()
11:36:07 E AndroidRuntime : at io.flutter.embedding.engine.f.a.run()
11:36:07 E AndroidRuntime : at android.os.Handler.handleCallback(Handler.java:751)
11:36:07 E AndroidRuntime : at android.os.Handler.dispatchMessage(Handler.java:95)
11:36:07 E AndroidRuntime : at android.os.Looper.loop(Looper.java:154)
11:36:07 E AndroidRuntime : at android.app.ActivityThread.main(ActivityThread.java:6165)
11:36:07 E AndroidRuntime : at java.lang.reflect.Method.invoke(Native Method)
11:36:07 E AndroidRuntime : at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:888)
11:36:07 E AndroidRuntime : at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:778)

flutter doctor -v

[✓] Flutter (Channel stable, 2.8.1, on macOS 11.5.2 20G95 darwin-x64, locale
    en-GB)
    • Flutter version 2.8.1 at /usr/local/Caskroom/flutter/2.5.1/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 77d935af4d (5 weeks ago), 2021-12-16 08:37:33 -0800
    • Engine revision 890a5fca2e
    • Dart version 2.15.1

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/mac/SDK
    • Platform android-31, build-tools 31.0.0
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.0)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.11.2

[✗] Chrome - develop for the web (Cannot find Chrome executable at
    /Applications/Google Chrome.app/Contents/MacOS/Google Chrome)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.

[✓] Android Studio (version 2020.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • 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 11.0.10+0-b96-7281165)

[✓] VS Code (version 1.61.2)
    • VS Code at /Users/mac/Downloads/Visual Studio Code.app/Contents
    • Flutter extension version 3.29.0

[✓] Connected device (1 available)
    • Pixel 4a (mobile) • 15051JEC206908 • android-arm64 • Android 12 (API 31)

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
Andrushencommented, Jan 26, 2022
0reactions
maheshmnjcommented, Jan 25, 2022

Thanks for the info @Andrushen, But without any logs there’s no way to know the cause of the crash and so this issue won’t be actionable further. Everyone who is facing this issue it would be great if you can share the complete crash logs along with the output of flutter doctor -v.

Thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why do my apps keep crashing on Android, How to fix it
How to fix apps that keep crashing on Android · 1. Force stop the app · 2. Restart the device · 4. Reinstall...
Read more >
What to Do If Apps Keep Crashing on an Android Device
Apps crashing on an Android device is not uncommon, but there are several ways to troubleshoot the problem.
Read more >
Why Do My Apps Keep Crashing on Android? - Avast
Apps on Android can crash because of low storage space, too many apps running simultaneously, a weak internet connection, or not having the ......
Read more >
How to Fix Crashing Apps on an iPhone or Android?
Poor memory management is one of the most common reasons for app crashes on mobile devices (tip: learn Android Studio Debug with Bugfender),...
Read more >
How to Stop Apps From Crashing on Android - AVG
Press and hold the Power button. · Wait until you see options to Restart or Power off. · Select Restart to start up...
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