Fix admob's problems


#1

hi i tried to update admob sdk
but i got this

at com.google.android.gms.ads.InterstitialAd.<init>(com.google.android.gms:play-services-ads-lite@@18.2.0:2)

 FATAL EXCEPTION: main

Process: com.MagneticSensor.apk, PID: 18774
java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/internal/ads/zzaju;
at com.google.android.gms.internal.ads.zzxd.(com.google.android.gms:play-services-ads-lite@@18.2.0:10)
at com.google.android.gms.internal.ads.zzxd.(com.google.android.gms:play-services-ads-lite@@18.2.0:3)
at com.google.android.gms.ads.InterstitialAd.(com.google.android.gms:play-services-ads-lite@@18.2.0:2)
at com.google.appinventor.components.runtime.AdMobInterstitial.(AdMobInterstitial.java:59)
at java.lang.reflect.Constructor.newInstance0(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:430)
at gnu.expr.PrimProcedure.apply(PrimProcedure.java:272)
at gnu.mapping.CallContext.runUntilDone(CallContext.java:234)
at gnu.mapping.CallContext.runUntilValue(CallContext.java:298)
at gnu.kawa.reflect.Invoke.applyN(Invoke.java:209)
at gnu.mapping.ProcedureN.apply2(ProcedureN.java:39)
at com.appybuilder.akbi_rook.Magnetic_S.Screen1.$define(Screen1.yail:10183)
at com.google.appinventor.components.runtime.Form.onCreateFinish(Form.java:357)
at com.google.appinventor.components.runtime.Form.onCreate(Form.java:304)
at android.app.Activity.performCreate(Activity.java:6720)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2618)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2726)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1477)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6126)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
Caused by: java.lang.ClassNotFoundException: com.google.android.gms.internal.ads.zzaju
at java.lang.VMClassLoader.findLoadedClass(Native Method)
at java.lang.ClassLoader.findLoadedClass(ClassLoader.java:742)
at java.lang.ClassLoader.loadClass(ClassLoader.java:362)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
… 26 more
Caused by: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/internal/ads/zzajw;
… 26 more
Caused by: java.lang.ClassNotFoundException: com.google.android.gms.internal.ads.zzajw
at java.lang.VMClassLoader.findLoadedClass(Native Method)
at java.lang.ClassLoader.findLoadedClass(ClassLoader.java:742)
at java.lang.ClassLoader.loadClass(ClassLoader.java:362)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
… 26 more
Caused by: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/internal/ads/zzfm;
… 26 more
Caused by: java.lang.ClassNotFoundException: Didn’t find class “com.google.android.gms.internal.ads.zzfm” on path: DexPathList[[zip file “/data/app/com.MagneticSensor.apk-1/base.apk”],nativeLibraryDirectories=[/data/app/com.MagneticSensor.apk-1/lib/arm64, /system/lib64, /vendor/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:380)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
… 26 more

how can i fix it any idea


#2

@Hossein pls bro you are the only one who can help me
what should i do ?


#3

You are trying to update the sdk??


#4

@Hossein
Yes i’ve been trying to update for week but i still can’t do it
I’ve done it normally with facebook and amazon ads
But im facing many problems with admob beside im noob in sdk’s domain :joy: so any advice how to do it please


#5

@Hossein aaa please i really need help