Update admob sdk offline

hi im using some sort of offline open source platfrom which built from app inventor
this platfrom include admob
i tried to update admob ads by replace old sdk by new one
but the problem is when i did that the app stop working
and it’s given me that
indent preformatted text by 4 spaces
at com.google.android.gms.ads.InterstitialAd.(com.google.android.gms:[email protected]@18.2.0:2)

 FATAL EXCEPTION: main

Process: com.jokri.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:[email protected]@18.2.0:10)
at com.google.android.gms.internal.ads.zzxd.(com.google.android.gms:[email protected]@18.2.0:3)
at com.google.android.gms.ads.InterstitialAd.(com.google.android.gms:[email protected]@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.arook.jokri.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.jokri.apk-1/base.apk”],nativeLibraryDirectories=[/data/app/com.jokri.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

any idea how to fix that ?

I see you have asked the same question on the AppyBuilder forum. Please only ask in the community of the builder you are using.

1 Like

i think that there’s no problem in asking here :confused:

It’s best to ask only in the community of the builder you are using in order to prevent spamming the forums.

Also if someone provides a solution in a different builder’s community you can’t guarantee it will work for the builder you are using.

Lastly it’s quite disrespectful to spam multiple forums.

2 Likes