multidex NoClassDefFoundError

106 views
Skip to first unread message

Leo Zhu

unread,
Jan 15, 2016, 2:25:40 AM1/15/16
to Google Mobile Ads SDK Developers
System APP: true
Thread: main
Exception: java.lang.NoClassDefFoundError
Cause: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.ads.internal.u.k" on path: DexPathList[[zip file "/system/framework/com.android.location.provider.jar", zip file "/system/framework/com.android.media.remotedisplay.jar", zip file "/data/app/com.google.android.gms-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.google.android.gms-2, /vendor/lib, /system/lib]]
Message: com/google/android/gms/ads/internal/u/k
at com.google.android.gms.ads.internal.u.i.a(SourceFile:52)
at com.google.android.gms.ads.internal.u.i.a(SourceFile:28)
at com.google.android.gms.ads.internal.j.g.<init>(SourceFile:42)
at com.google.android.gms.ads.internal.j.d.run(SourceFile:41)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5045)
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:786)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:602)
at dalvik.system.NativeStart.main(Native Method)
Exception: java.lang.ClassNotFoundException
Cause: null
Message: Didn't find class "com.google.android.gms.ads.internal.u.k" on path: DexPathList[[zip file "/system/framework/com.android.location.provider.jar", zip file "/system/framework/com.android.media.remotedisplay.jar", zip file "/data/app/com.google.android.gms-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.google.android.gms-2, /vendor/lib, /system/lib]]
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 com.google.android.gms.ads.internal.u.i.a(SourceFile:52)
at com.google.android.gms.ads.internal.u.i.a(SourceFile:28)
at com.google.android.gms.ads.internal.j.g.<init>(SourceFile:42)
at com.google.android.gms.ads.internal.j.d.run(SourceFile:41)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5045)
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:786)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:602)
at dalvik.system.NativeStart.main(Native Method)


Is there any problem when integrating Admob with multidex?

Veer Arjun Busani

unread,
Jan 15, 2016, 10:17:49 AM1/15/16
to Google Mobile Ads SDK Developers
Hi Leo,

I have just now enabled Multidex and not found any issue. Could you please confirm with any of our sample apps by enabling Multidex on them and see if any issue persists? Also the issue might not be about Multidex, so could you confirm whether ProGuard is not obfuscating any class? 

Thanks,
Veer Arjun Busani
Mobile Ads SDK Team

Leo Zhu

unread,
Jan 19, 2016, 12:38:14 AM1/19/16
to Google Mobile Ads SDK Developers
Thanks for the reply
It works on most device. We received this crash from a particular device Coolpad 3300A. Is there any possibility that the google service on Coolpad 3300A has bugs. Is it the device bug?

Veer Arjun Busani

unread,
Jan 19, 2016, 11:26:21 AM1/19/16
to Google Mobile Ads SDK Developers
Hi Leo,

In that case, have you tried to simply enable Multidex without having any Ads for Coolpad 3300A? This could also be device specific supporting Multidex. Before I completely dismiss as beyond the scope for Mobile Ads, would you be able to confirm the following - 
  • That you are not using any Custom ROM for this device? If that's the case, try to flash back to Stack ROM and see if the issue persists.
  • Try and test Multidex enabled app without any Mobile Ads. If you are still seeing crashes, it would be beyond the scope of this support forum and suggest you to look here
Thanks,
Reply all
Reply to author
Forward
0 new messages