AHSwipeToRefresh crashes the app, this started after the AndroidX migration I believe.
Logs:
I have android-support-4.jar in Additional libs folder, and also ran Jetifier.
I also have "Google repository" and "Android Support Repository" installed from the B4A SDK
Logs:
B4X:
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
Error occurred on line: 194 (Main)
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:170)
at anywheresoftware.b4a.objects.PanelWrapper.LoadLayout(PanelWrapper.java:134)
at anywheresoftware.b4a.objects.TabStripViewPager.LoadLayout(TabStripViewPager.java:116)
at com.multiverse.walldrox.main$ResumableSub_Activity_Create.resume(main.java:903)
at com.multiverse.walldrox.main._activity_create(main.java:798)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
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 java.lang.reflect.Method.invoke(Method.java:372)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:144)
at com.multiverse.walldrox.main.afterFirstLayout(main.java:104)
at com.multiverse.walldrox.main.access$000(main.java:17)
at com.multiverse.walldrox.main$WaitForLayout.run(main.java:82)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5265)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:902)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:697)
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at anywheresoftware.b4a.objects.CustomViewWrapper.AfterDesignerScript(CustomViewWrapper.java:64)
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:162)
... 23 more
Caused by: java.lang.NoClassDefFoundError: de.amberhome.strefresh.base.CustomSwipeRefreshLayout
at de.amberhome.strefresh.AHSwipeToRefresh.innerInitialize(AHSwipeToRefresh.java:53)
at de.amberhome.strefresh.AHSwipeToRefresh._initialize(AHSwipeToRefresh.java:46)
... 27 more
I have android-support-4.jar in Additional libs folder, and also ran Jetifier.
I also have "Google repository" and "Android Support Repository" installed from the B4A SDK