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.

Admob 7.0.1 with Mediation have App Crash

See original GitHub issue

[REQUIRED] Step 1: Describe your environment

  • Unity version: 2021.3.2f1
  • Google Mobile Ads Unity plugin version: 7.0.1
  • Platform: Android
  • Platform OS version: Android 12
  • Any specific devices issue occurs on:
  • Mediation ad networks used, and their versions: Facebook Mediation 3.6.1

[REQUIRED] Step 2: Describe the problem

Steps to reproduce:

App is crashed when using mediation (Facebook and UnityAds also)

Log Cat

2022-05-27 18:00:23.820 19645-19711/? E/Unity: AndroidJavaException: java.lang.ClassNotFoundException: com.google.android.gms.ads.mediation.admob.AdMobExtras java.lang.ClassNotFoundException: com.google.android.gms.ads.mediation.admob.AdMobExtras at java.lang.Class.classForName(Native Method) at java.lang.Class.forName(Class.java:454) at com.unity3d.player.UnityPlayer.nativeRender(Native Method) at com.unity3d.player.UnityPlayer.access$300(Unknown Source:0) at com.unity3d.player.UnityPlayer$e$1.handleMessage(Unknown Source:95) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loopOnce(Looper.java:226) at android.os.Looper.loop(Looper.java:313) at com.unity3d.player.UnityPlayer$e.run(Unknown Source:20) Caused by: java.lang.ClassNotFoundException: com.google.android.gms.ads.mediation.admob.AdMobExtras at java.lang.Class.classForName(Native Method)  at java.lang.Class.forName(Class.java:454)  at com.unity3d.player.UnityPlayer.nativeRender(Native Method)  at com.unity3d.player.UnityPlayer.access$300(Unknown Source:0)  at com.unity3d.player.UnityPlayer$e$1.handleMessage(Unknown Source:95)  at android.os.Handler.dispatchMessage(Handler.java:102)  at android.os.Looper.loopOnce(Looper.java:226)  at android.os.Looper.loop(Looper.java:313)  at com.unity3d.player.UnityPlayer$e.run(Unknown Source:20)  at UnityEngine.AndroidJNISafe.CheckException () [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.AndroidJNISafe.FindClass (System.String name) [0x00000] in <00000000000000000000000000000000>

Relevant Code:

// TODO(you): code here to reproduce the problem

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
NVentimigliacommented, May 27, 2022

@dhamelin we will release an update with Android V21 support shortly.

2reactions
LobosBBcommented, May 30, 2022

I solved this problem by changing this line into GoogleMobileAdsDependencies.xml

<androidPackage spec="com.google.android.gms:play-services-ads:20.6.0">

to this line

<androidPackage spec="com.google.android.gms:play-services-ads:[20.6.0]">

Read more comments on GitHub >

github_iconTop Results From Across the Web

A lot of crashes in latest AdMob when run with mediation ...
We've found that crash reproducing when both Chartboost and Facebook mediation used in project. We did additional tests and: 1. Applovin + Chartboost...
Read more >
Release Notes | Android
Mediation : Added mediation support for app open ads. ... to fix a bug causing app crashes on Android S with the following...
Read more >
Bug - Crash - AdMob - Launch/Suspend
I am seeing stability issues on iOS that are not present on our Android builds. There are currently 2 crashes that occur only...
Read more >
SDK Change Log
SDK Release Date Notes 7.3.1 2023/06/08 7.3.0.1 2023/03/23 • Wraps Android 7.3.0.1 SDK and iOS 7.3.0 SDK 7.3.0 2023/03/16
Read more >
App Crashes related to AppLovin Adapaters
There are bugs in the Admob/AppLovin adapters (11.8.2) that are making unsupported calls to UIKIT from the main thread in my IOS app....
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