Android Question Error - Update new version B4A v10.7

Calvin Yee

Member
Licensed User
Hi,

After I update new version B4A v10.7, I click F5 then I get an error as per attachment.

Please help.
 

Attachments

  • Error.JPG
    Error.JPG
    217.3 KB · Views: 162

Calvin Yee

Member
Licensed User
after follow instruction, I get the error as :-
B4X:
java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/core/content/ContextCompat;
    at anywheresoftware.b4a.objects.RuntimePermissions.GetSafeDirDefaultExternal(RuntimePermissions.java:120)
 

Attachments

  • error2.JPG
    error2.JPG
    111.7 KB · Views: 123
Upvote 0

agraham

Expert
Licensed User
Longtime User
Your original error was an out of date SDK which looks resolved with the new SDK.

This new error looks like a failure at runtime to find androidx.core.content.ContextCompat. As the app presumably compiled OK it looks like it might be missing from your device. What device and version of Android is it? Can you try another recent device?
 
Upvote 0

Calvin Yee

Member
Licensed User
Hi,

I follow your instruction Delete the SDK folder and download a new one then got the error as per file attachment.
 

Attachments

  • error3.JPG
    error3.JPG
    99.9 KB · Views: 105
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
I follow your instruction Delete the SDK folder and download a new one then got the error as per file attachment.
Start with updating B4A to the latest Version which is 10.7
The newest SDK need a updated Version.
 
Upvote 0

Calvin Yee

Member
Licensed User
After update new version 10.7 got error as per.

I also attach configuration image.
 

Attachments

  • error4.JPG
    error4.JPG
    105 KB · Views: 105
  • Configure.JPG
    Configure.JPG
    76.7 KB · Views: 102
Upvote 0

Calvin Yee

Member
Licensed User
May I know what is missing?

B4X:
ava.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v4/view/ViewConfigurationCompat;
    at com.jeremyfeinstein.slidingmenu.lib.CustomViewAbove.initCustomViewAbove(CustomViewAbove.java:167)
    at com.jeremyfeinstein.slidingmenu.lib.CustomViewAbove.<init>(CustomViewAbove.java:157)
    at com.jeremyfeinstein.slidingmenu.lib.CustomViewAbove.<init>(CustomViewAbove.java:152)
    at com.jeremyfeinstein.slidingmenu.lib.SlidingMenu.<init>(SlidingMenu.java:209)
    at com.jeremyfeinstein.slidingmenu.lib.SlidingMenu.<init>(SlidingMenu.java:192)
    at com.jeremyfeinstein.slidingmenu.lib.SlidingMenu.<init>(SlidingMenu.java:181)
    at anywheresoftware.b4a.objects.SlidingMenuWrapper.Initialize(SlidingMenuWrapper.java:26)
    at com.joyous.home.main._loadsidemenu(main.java:5685)
    at com..joyous.home.main._activity_create(main.java:712)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:213)
    at com.joyous.home.main.afterFirstLayout(main.java:105)
    at com..joyous.home.main.access$000(main.java:17)
    at com..joyous.home.main$WaitForLayout.run(main.java:83)
    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:7091)
    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:975)
Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.v4.view.ViewConfigurationCompat" on path: DexPathList[[zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/data/app/com.joyous.home-PtPEESP9zTGFkzbbO5Kdgw==/base.apk"],nativeLibraryDirectories=[/data/app/com..joyous.home-PtPEESP9zTGFkzbbO5Kdgw==/lib/arm, /system/lib]]
    at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:134)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
    ... 21 more
 
Upvote 0
Top