Java Question NoClassDefFoundError Problem :(

Salar82

Member
Hi guys,
I tried to wrap a library with AndroidStudio. it compiled well.

But

I get the following error in b4a:
B4X:
java.lang.NoClassDefFoundError: com.smarteist.autoimageslider.SliderPager$MyAccessibilityDelegate
    at com.smarteist.autoimageslider.SliderPager.initSliderPager(SliderPager.java:366)
    at com.smarteist.autoimageslider.SliderPager.<init>(SliderPager.java:339)
    at com.smarteist.autoimageslider.SliderView.setupSlideView(SliderView.java:215)
    at com.smarteist.autoimageslider.SliderView.<init>(SliderView.java:90)
    at ir.imageslider.ash.ShImageSlider._initialize(ShImageSlider.java:89)
    at ir.imageslider.ash.ShImageSlider.Initialize(ShImageSlider.java:82)
    at b4a.example.next.main._activity_create(main.java:391)
    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:348)
    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 b4a.example.next.main.afterFirstLayout(main.java:105)
    at b4a.example.next.main.access$000(main.java:17)
    at b4a.example.next.main$WaitForLayout.run(main.java:83)
    at android.os.Handler.handleCallback(Handler.java:743)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:150)
    at android.app.ActivityThread.main(ActivityThread.java:5546)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:794)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:684)

MyAccessibilityDelegate is an inner Class in SliderPager class.
this class exist. look:
Annotation 2020-09-02 210645.png



But it says that: this file does not exist. WHY?

A very interesting point:
If I use the AppCompat library in the project, this error will be fixed. WHY?


MyAccessibilityDelegate class:
B4X:
public class MyAccessibilityDelegate extends AccessibilityDelegateCompat {
.
.
.
}

Thanks in advanced
 
Top