java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/ads/InterstitialAd;

308 views
Skip to first unread message

Pulloff

unread,
Apr 3, 2021, 11:21:24 PM4/3/21
to Google Mobile Ads SDK Developers
Sorry if this has been asked before. I looked around but didn't see if this was asked already.

i'm using admob for my unity to support android devices. i wasn't getting these error messages with the test ads but right when I'm ready to roll out the real release, this wrecks everything and i probably won't get any ads on my game with this error (there's 3 but they're the same msg, just slightly diff details). I already reimported the GoogleMobileAds plugin... about 8 times now, forced resolved with the External Dependency Manager, checked to make sure admob and my files matched... made sure the jdk, sdk and ndk pathways were correct, restarted everything... I'm at a loss. Below is the details. Can anyone please help?

FATAL EXCEPTION: main Process: com.ButtonCanGames.ZombieLift, PID: 19887 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:873) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:193) at android.app.ActivityThread.main(ActivityThread.java:6718) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858) Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.ads.InterstitialAd" on path: DexPathList[[zip file "/system/framework/android.test.runner.jar", zip file "/system/framework/android.test.mock.jar", zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/data/app/androidx.test.tools.crawler-BZ_iYIYR50TtKkdZP3zuUA==/base.apk", zip file "/data/app/com.ButtonCanGames.ZombieLift-aiB72KlhUad62Ba6DhLi1w==/base.apk", zip file "/data/app/com.ButtonCanGames.ZombieLift-aiB72KlhUad62Ba6DhLi1w==/split_config.arm64_v8a.apk"],nativeLibraryDirectories=[/data/app/androidx.test.tools.crawler-BZ_iYIYR50TtKkdZP3zuUA==/lib/arm64, /data/app/com.ButtonCanGames.ZombieLift-aiB72KlhUad62Ba6DhLi1w==/lib/arm64, /data/app/androidx.test.tools.crawler-BZ_iYIYR50TtKkdZP3zuUA==/base.apk!/lib/arm64-v8a, /data/app/com.ButtonCanGames.ZombieLift-aiB72KlhUad62Ba6DhLi1w==/base.apk!/lib/arm64-v8a, /data/app/com.ButtonCanGames.ZombieLift-aiB72KlhUad62Ba6DhLi1w==/split_config.arm64_v8a.apk!/lib/arm64-v8a, /system/lib64]] at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:134) at java.lang.ClassLoader.loadClass(ClassLoader.java:379) at java.lang.ClassLoader.loadClass(ClassLoader.java:312) ... 8 more Suppressed: java.io.IOException: No original dex files found for dex location /data/app/com.ButtonCanGames.ZombieLift-aiB72KlhUad62Ba6DhLi1w==/split_config.arm64_v8a.apk at dalvik.system.DexFile.openDexFileNative(Native Method) at dalvik.system.DexFile.openDexFile(DexFile.java:354) at dalvik.system.DexFile.<init>(DexFile.java:101) at dalvik.system.DexFile.<init>(DexFile.java:75) at dalvik.system.DexPathList.loadDexFile(DexPathList.java:394) at dalvik.system.DexPathList.makeDexElements(DexPathList.java:354) at dalvik.system.DexPathList.<init>(DexPathList.java:164) at dalvik.system.BaseDexClassLoader.<init>(BaseDexClassLoader.java:74) at dalvik.system.BaseDexClassLoader.<init>(BaseDexClassLoader.java:65) at dalvik.system.PathClassLoader.<init>(PathClassLoader.java:64) at com.android.internal.os.ClassLoaderFactory.createClassLoader(ClassLoaderFactory.java:73) at com.android.internal.os.ClassLoaderFactory.createClassLoader(ClassLoaderFactory.java:88) at android.app.ApplicationLoaders.getClassLoader(ApplicationLoaders.java:74) at android.app.ApplicationLoaders.getClassLoader(ApplicationLoaders.java:40) at android.app.LoadedApk.createOrUpdateClassLoaderLocked(LoadedApk.java:727) at android.app.LoadedApk.getClassLoader(LoadedApk.java:810) at android.app.LoadedApk.getResources(LoadedApk.java:1032) at android.app.ContextImpl.createAppContext(ContextImpl.java:2345) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5798) at android.app.ActivityThread.access$1100(ActivityThread.java:200) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1656) at android.os.Handler.dispatchMessage(Handler.java:106) ... 5 more

Gaming Free fire

unread,
Apr 4, 2021, 3:19:14 PM4/4/21
to Pulloff, Google Mobile Ads SDK Developers
Yes

--

---
You received this message because you are subscribed to the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-admob-ads-sdk/9a332ab1-0b79-4209-b41f-8779023f3b19n%40googlegroups.com.

Mobile Ads SDK Forum Advisor Prod

unread,
Apr 5, 2021, 1:48:02 AM4/5/21
to joeof...@gmail.com, google-adm...@googlegroups.com

Hi there,

Thank you for bringing this to us.

Could you please provide the details below (via Reply to author or a direct, private reply to mobileads...@gmail.com) so that I can further investigate this issue.

  • Copy of a sample project (replicating the issue)
  • Steps to replicate the issue
Regards,
Google Logo
Princess Pamela Pineda
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2EpjAA:ref
Reply all
Reply to author
Forward
0 new messages