App crashes with ClassNotFoundException in Tablet device with api level 19 and below, for admob version 18.3.0

328 views
Skip to first unread message

Termini Apps

unread,
Feb 19, 2020, 6:36:37 AM2/19/20
to Google Mobile Ads SDK Developers
02-19 16:58:40.615 4827-4827/? E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.example.canva, PID: 4827
    java.lang.RuntimeException: Unable to get provider com.google.android.gms.ads.MobileAdsInitProvider: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.ads.MobileAdsInitProvider" on path: DexPathList[[zip file "/data/app/com.example.canva-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.example.canva-1, /vendor/lib, /system/lib, /system/lib/arm]]
        at android.app.ActivityThread.installProvider(ActivityThread.java:5256)
        at android.app.ActivityThread.installContentProviders(ActivityThread.java:4847)
        at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4730)
        at android.app.ActivityThread.access$1600(ActivityThread.java:172)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1368)
        at android.os.Handler.dispatchMessage(Handler.java:102)
        at android.os.Looper.loop(Looper.java:146)
        at android.app.ActivityThread.main(ActivityThread.java:5653)
        at java.lang.reflect.Method.invokeNative(Native Method)
        at java.lang.reflect.Method.invoke(Method.java:515)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1291)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1107)
        at dalvik.system.NativeStart.main(Native Method)
     Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.ads.MobileAdsInitProvider" on path: DexPathList[[zip file "/data/app/com.example.canva-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.example.canva-1, /vendor/lib, /system/lib, /system/lib/arm]]
        at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
        at android.app.ActivityThread.installProvider(ActivityThread.java:5241)
        at android.app.ActivityThread.installContentProviders(ActivityThread.java:4847) 
        at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4730) 
        at android.app.ActivityThread.access$1600(ActivityThread.java:172) 
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1368) 
        at android.os.Handler.dispatchMessage(Handler.java:102) 
        at android.os.Looper.loop(Looper.java:146) 
        at android.app.ActivityThread.main(ActivityThread.java:5653) 
        at java.lang.reflect.Method.invokeNative(Native Method) 
        at java.lang.reflect.Method.invoke(Method.java:515) 
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1291) 
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1107) 
        at dalvik.system.NativeStart.main(Native Method) 

 this happens all the time with Tablet, while it running fine on the latest version of mobile devices.

Mobile Ads SDK Forum Advisor Prod

unread,
Feb 19, 2020, 3:39:36 PM2/19/20
to sarojkuma...@gmail.com, google-adm...@googlegroups.com
Hello there,

Thanks for reaching out to us and sharing the logs. Can you please share the following details for us to take a look into the issue?
  • Details of the device and Os version on which you are seeing this crash. 
  • Is it specific to only devices with API level 19 and below, for admob version 18.3.0? 
  • Are you able to reproduce the issue with other similar device(tablet)?
  • If you are able to reproduce the issue locally, can you please share a sample project for us to reproduce the issue on our end as well? 

Regards,
Deepika Uragayala
Mobile Ads SDK Team
 



ref:_00D1U1174p._5001UV1ZlC:ref

ملك الأغاني العربية FM

unread,
Feb 19, 2020, 3:52:52 PM2/19/20
to Google Mobile Ads SDK Developers

Termini Apps

unread,
Feb 20, 2020, 2:00:47 AM2/20/20
to Google Mobile Ads SDK Developers
As per your question,

the device is- Samsung Galaxy tab 3. Model No- GT-P5210, Android Version - 4.4.2.
                Yes, it is crashing for  Kitkat and lower version.
                Yes, it is reproducing on the same device all the time.
                 Currently, I don't have any other similar device.

Thanks & Regards

Mobile Ads SDK Forum Advisor Prod

unread,
Feb 20, 2020, 3:55:41 AM2/20/20
to sarojkuma...@gmail.com, google-adm...@googlegroups.com

Hi there,

 

Thank you for providing the requested details in private.

 

It seems that there might be an issue with using MultiDex on an old Android version for your app. If you are using MultiDex, could you then kindly try the solution suggested here, and confirm whether or not it would work on your end?

 

If the situation persists despite the above (or if you weren't using MultiDex in the first place), could you then send the details below (via Reply privately to author) so that I can further investigate the issue?

  • Copy of your sample project (replicating the issue)
  • Steps to replicate the issue

 

Regards,

Ziv Yves Sanchez

Termini Apps

unread,
Feb 20, 2020, 4:36:09 AM2/20/20
to Google Mobile Ads SDK Developers
Thanks, this trick has solved my problem.
I hope google will bring some workaround for it in the near future. 
Reply all
Reply to author
Forward
0 new messages