Android Question java.lang.ClassNotFoundException: android.support.v4$view$ViewPager$OnPageChangeListener

DawningTruth

Active Member
Licensed User
Hi,

I have been working on the backend of my project so long that I literally need to learn B4A from scratch, so this may be a silly question.

I have loaded my project on a fresh install and get this error:

Error Message:
java.lang.ClassNotFoundException: android.support.v4$view$ViewPager$OnPageChangeListener
    at anywheresoftware.b4j.object.JavaObject.getCorrectClassName(JavaObject.java:289)
    at anywheresoftware.b4j.object.JavaObject.createEvent(JavaObject.java:253)
    at anywheresoftware.b4j.object.JavaObject.CreateEventFromUI(JavaObject.java:223)
    at b4a.example.webbrowser._activity_resume(webbrowser.java:1691)
    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:146)
    at anywheresoftware.b4a.BA.raiseEvent(BA.java:193)
    at b4a.example.webbrowser.afterFirstLayout(webbrowser.java:113)
    at b4a.example.webbrowser.access$000(webbrowser.java:19)
    at b4a.example.webbrowser$WaitForLayout.run(webbrowser.java:85)
    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)

Here is the code that generates the error:

Error Code:
Main.webBrowser_.event =  Main.webBrowser_.web_JavaObject_.CreateEventFromUI("android.support.v4.view.ViewPager.OnPageChangeListener", "PageChangeListener", Null)

Any thoughts??
 
Top