Android Question After installation ver. 9.5 I got a RuntimeException

denik

Member
Licensed User
Happy New Year!

After installing ver. 9.5 I got a RuntimeException in a previously working project:


--------- beginning of main
Copying updated assets files (15)
** Activity (main) Create, isFirst = true **
Error occurred on line: 91 (Main)
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:170)
at anywheresoftware.b4a.objects.ActivityWrapper.LoadLayout(ActivityWrapper.java:209)
at denik.molarity.main._activity_create(main.java:504)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:732)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:351)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:144)
at denik.molarity.main.afterFirstLayout(main.java:104)
at denik.molarity.main.access$000(main.java:17)
at denik.molarity.main$WaitForLayout.run(main.java:82)
at android.os.Handler.handleCallback(Handler.java:836)
at android.os.Handler.dispatchMessage(Handler.java:103)
at android.os.Looper.loop(Looper.java:203)
at android.app.ActivityThread.main(ActivityThread.java:6272)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1063)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:924)
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.objects.CustomViewWrapper.AfterDesignerScript(CustomViewWrapper.java:64)
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:162)
... 18 more
Caused by: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v7/widget/AppCompatEditText;
at de.amberhome.objects.appcompat.ACEditTextWrapper.innerInitialize(ACEditTextWrapper.java:43)
at anywheresoftware.b4a.objects.ViewWrapper.Initialize(ViewWrapper.java:67)
at de.amberhome.objects.appcompat.ACEditTextWrapper._initialize(ACEditTextWrapper.java:139)
... 21 more
Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.v7.widget.AppCompatEditText" on path: DexPathList[[zip file "/data/app/denik.molarity-1/base.apk"],nativeLibraryDirectories=[/data/app/denik.molarity-1/lib/arm, /system/lib, /vendor/lib, /system/vendor/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:380)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
... 24 more
** Activity (main) Resume **
 

DonManfred

Expert
Licensed User
1. Redownload appcompat 4.0 (it already includes a AndroidX Version)
2. Run the jetifier tool
 
Upvote 0
Top