Nb195c Update Issue - apps won't run with extensions [now reverted]

[UPDATE 2023-01-20 1300 GMT] we are now back to nb195b so things should be working again....

Yesterdays update of AI2 to nb195c is causing problems.

Please be patient while MIT resolve the issue.

4 Likes

Hi,
I'm trying [WhatsAppTools Extension on Android 9,10,11.

Mysimple test app has some buttons that opens whatsapp video call using the extension.
When I try to open my app, it crashes.

Using logcat I can see the error :

FATAL Exception java.lang.>NoClassDefFoundError...........
.....
......
. Caused by: java.lang.ClassNotFoundException : Didn't find class "co.Salmandev.WhatsappTools.WhatsappTools" on path........

What is the problem ?
I can fix it in anyway ?

thank you
Claudio

Hello,
I'm having problems with an app that works as it should in the companion. The installed Apk will be closed immediately after being opened. I don't get an error message and I HAVE NO CLUE:
What possible causes could exist here. I know, not a crystal ball.
how would you approach the problem??
Greetings Stefan

Android 8.0 + Android 6.0

Read the first post by @TIMAI2 if your app is affected by this.

Again, be patient.

2 Likes

Application with customwebview extension not opening in my mobile phone how can I solve this problem...kindly help me...

Sebelum-sebelumnya, ekstensi UrsAI2Mqtt tidak ada masalah ketika digunakan. Hari ini, ekstensi tersebut mengakibatkan aplikasi langsung berhenti dan menutup sendiri ketika aplikasi dijalankan. Saya menyimpulkan demikian, karena pada saat ekstensi tersebut saya hapus dari project, saya coba build dan instal aplikasi tidak ada masalah. Apakah ekstensi tersebut saat ini tidak bisa lagi dipakai di AI2?

Hi,
I need to use the WhatsAppTools Extension on Android 9+
My app simply launch whatsapp video call.
When I run the app, it crashes

With logcat I can see the error

FATAL EXCEPTION: main
Process: appinventor.ai_MEngeneeringSoft.Zap_Call, PID: 32206
java.lang.NoClassDefFoundError: Failed resolution of: Lcom/SalmanDev/WhatsAppTools/WhatsAppTools;
at java.lang.Class.getDeclaredFields(Native Method)
at gnu.bytecode.ClassType.addFields(ClassType.java:606)
at gnu.bytecode.ClassType.getFields(ClassType.java:506)
at gnu.bytecode.ClassType.hasOuterLink(ClassType.java:260)
at gnu.bytecode.ClassType.getDeclaredMethod(ClassType.java:880)
at gnu.bytecode.ClassType.addMethod(ClassType.java:667)
at gnu.bytecode.ClassType.addMethod(ClassType.java:698)
at gnu.bytecode.ClassType.addMethods(ClassType.java:1009)
at gnu.bytecode.ClassType.getDeclaredMethods(ClassType.java:725)
at gnu.bytecode.ClassType.getMethods(ClassType.java:809)
at gnu.kawa.reflect.ClassMethods.getMethods(ClassMethods.java:106)
at gnu.kawa.reflect.ClassMethods.apply(ClassMethods.java:229)
at gnu.kawa.reflect.Invoke.lookupMethods(Invoke.java:278)
at gnu.kawa.reflect.Invoke.applyN(Invoke.java:185)
at gnu.mapping.ProcedureN.apply3(ProcedureN.java:48)
at com.google.youngandroid.runtime.$PcSetAndCoerceProperty$Ex(runtime16528139043103480847.scm:1417)
at com.google.youngandroid.runtime.setAndCoerceProperty$Ex(runtime16528139043103480847.scm:204)
at appinventor.ai_MEngeneeringSoft.Zap_Call.Screen1.lambda92(Screen1.yail:27)
at appinventor.ai_MEngeneeringSoft.Zap_Call.Screen1$frame.apply0(Screen1.yail:24)
at gnu.expr.ModuleMethod.apply0(ModuleMethod.java:186)
at kawa.lang.Promise.force(Promise.java:27)
at kawa.lang.Promise.force(Promise.java:37)
at kawa.lib.misc.force(misc.scm:99)
at appinventor.ai_MEngeneeringSoft.Zap_Call.Screen1.$define(Screen1.yail:10316)
at com.google.appinventor.components.runtime.Form.onCreateFinish(Form.java:395)
at com.google.appinventor.components.runtime.Form.onCreate(Form.java:340)
at appinventor.ai_MEngeneeringSoft.Zap_Call.Screen1.onCreate(Screen1.yail:10003)
at android.app.Activity.performCreate(Activity.java:7327)
at android.app.Activity.performCreate(Activity.java:7318)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1275)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3101)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3264)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1955)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7076)
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:965)
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.SalmanDev.WhatsAppTools.WhatsAppTools" on path: DexPathList[[zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/data/app/appinventor.ai_MEngeneeringSoft.Zap_Call-FjZNMP6UJSkFDDeRi4poqA==/base.apk"],nativeLibraryDirectories=[/data/app/appinventor.ai_MEngeneeringSoft.Zap_Call-FjZNMP6UJSkFDDeRi4poqA==/lib/arm64, /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)
... 42 more

Is necessary to update extension libs ?
How can I solve ? (I don't know java development)

Thank you
Claudio

MIT says the new update has been reversed. Please verify if it works now.

1 Like

The issue appears to be fixed now.

1 Like

Yes, but...

:question:

I'm not sure, I guess nb192b is a mid transitioning version from nb195a to nb195c but without the change that crashes the APK.

Actually, nb195b was put out shortly after nb195a to fix a bug. We never got around to publishing release notes for it.

2 Likes

It's fixed for my apps, many thanks.