Hi All
I am getting this error cause for the app to fail. Compiled perfectly but then when opening this is what it showed as the cause line
this is the full error log
Any advise would be great.
Thank you
Peter
I am getting this error cause for the app to fail. Compiled perfectly but then when opening this is what it showed as the cause line
Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.v4.content.ContextCompat" on path: DexPathList[[zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/data/app/b4a.example.ScratchView-Vw2KbtcivT4lcTUxH-D1dA==/base.apk"],nativeLibraryDirectories=[/data/app/b4a.example.ScratchView-Vw2KbtcivT4lcTUxH-D1dA==/lib/arm64, /system/lib64, /system/vendor/lib64]]
this is the full error log
Logger connected to: samsung SM-N950F
--------- beginning of main
Copying updated assets files (2)
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
--------- beginning of crash
java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v4/content/ContextCompat;
at com.cooltechworks.views.ScratchImageView.onSizeChanged(ScratchImageView.java:172)
at android.view.View.sizeChange(View.java:22621)
at android.view.View.setFrame(View.java:22563)
at android.widget.ImageView.setFrame(ImageView.java:1201)
at android.view.View.layout(View.java:22423)
at anywheresoftware.b4a.BALayout.onLayout(BALayout.java:60)
at android.view.View.layout(View.java:22426)
at android.view.ViewGroup.layout(ViewGroup.java:6584)
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
at android.view.View.layout(View.java:22426)
at android.view.ViewGroup.layout(ViewGroup.java:6584)
at com.android.internal.widget.ActionBarOverlayLayout.onLayout(ActionBarOverlayLayout.java:508)
at android.view.View.layout(View.java:22426)
at android.view.ViewGroup.layout(ViewGroup.java:6584)
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
at com.android.internal.policy.DecorView.onLayout(DecorView.java:1041)
at android.view.View.layout(View.java:22426)
at android.view.ViewGroup.layout(ViewGroup.java:6584)
at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:3363)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2827)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1873)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:8496)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:986)
at android.view.Choreographer.doCallbacks(Choreographer.java:764)
at android.view.Choreographer.doFrame(Choreographer.java:699)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:965)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7073)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:965)
Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.v4.content.ContextCompat" on path: DexPathList[[zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/data/app/b4a.example.ScratchView-Vw2KbtcivT4lcTUxH-D1dA==/base.apk"],nativeLibraryDirectories=[/data/app/b4a.example.ScratchView-Vw2KbtcivT4lcTUxH-D1dA==/lib/arm64, /system/lib64, /system/vendor/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)
... 35 more
Any advise would be great.
Thank you
Peter