My Unity Android App Crashes Whenever I Request Interstial Ad in my app

222 views
Skip to first unread message

Juned Khan Momin

unread,
Aug 18, 2017, 6:12:36 PM8/18/17
to Google Mobile Ads SDK Developers
My Unity Android App Crashes Whenever I Request Interstial Ad in my app, I cannot figure out what is causing this. Earlier I have worked with Interstial Ads and they were working fine. Since 2 days this problem is occuring. In Unity Editor, the Console shows it has loaded the Ad, but when I build and run in my Device or Emulator, the RequestInterstitial Crashes the app. It was working fine earlier. Please help...

Here is the Log of Crash
java.lang.Error: FATAL EXCEPTION [main]
Unity version     : 5.5.0f3
Device model      : Xiaomi Redmi Note 4
Device fingerprint: xiaomi/mido/mido:6.0.1/MMB29M/V8.2.10.0.MCFMIDL:user/release-keys

Caused by: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/ads/InterstitialAd;
    at com.google.unity.ads.Interstitial$1.run(Interstitial.java:64)
    at android.os.Handler.handleCallback(Handler.java:739)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:148)
    at android.app.ActivityThread.main(ActivityThread.java:5438)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:738)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:628)
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.ads.InterstitialAd" on path: DexPathList[[zip file "/data/app/com.hh.kk-2/base.apk"],nativeLibraryDirectories=[/data/app/com.hh.kk-2/lib/arm, /data/app/com.hh.kk-2/base.apk!/lib/armeabi-v7a, /vendor/lib, /system/lib]]
    at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
    ... 8 more
    Suppressed: java.lang.ClassNotFoundException: com.google.android.gms.ads.InterstitialAd
        at java.lang.Class.classForName(Native Method)
        at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
        at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
        ... 9 more
    Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available

Joshua Lagonera (Mobile Ads SDK Team)

unread,
Aug 20, 2017, 11:33:36 PM8/20/17
to Google Mobile Ads SDK Developers
Hi there,

We had a similar report about this, but in order to confirm, can you provide us with the following information?
  • A sample application where the issue can be replicated
  • Steps to replicate the crash
  • Full stack trace of the crash
Additionally, does this only occur on one specific device? Would you be able to try out on other devices and see if the crash still occurs? Would you also be able to verify if you can replicate the same crash on our sample apps?

Regards,
Joshua Lagonera
Mobile Ads SDK Team

Joshua Lagonera (Mobile Ads SDK Team)

unread,
Aug 25, 2017, 6:35:43 AM8/25/17
to Google Mobile Ads SDK Developers
Hi there,

Hope you are doing well. Kindly provide us the information we previously requested for us to investigate the possible cause of the issue.

Regards,
Joshua Lagonera
Mobile Ads SDK Team

On Saturday, August 19, 2017 at 6:12:36 AM UTC+8, Juned Khan Momin wrote:
Reply all
Reply to author
Forward
0 new messages