Android Question ViewPager Error

Marvel

Active Member
Licensed User
Help me guys, I keep getting the error below when I try to run my code with the ViewPager library by Corwin42. I have downloaded all the requirements but it is still not working.


Error occurred on line: 35 (Main)
java.lang.RuntimeException: java.lang.ClassNotFoundException: example.newviewpager.scrollingtabs.TabLayoutWrapper
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:170)
at anywheresoftware.b4a.objects.ActivityWrapper.LoadLayout(ActivityWrapper.java:209)
at example.newviewpager.scrollingtabs.main._activity_create(main.java:386)
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:351)
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 example.newviewpager.scrollingtabs.main.afterFirstLayout(main.java:104)
at example.newviewpager.scrollingtabs.main.access$000(main.java:17)
at example.newviewpager.scrollingtabs.main$WaitForLayout.run(main.java:82)
at android.os.Handler.handleCallback(Handler.java:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:224)
at android.app.ActivityThread.main(ActivityThread.java:7520)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950)
Caused by: java.lang.ClassNotFoundException: example.newviewpager.scrollingtabs.TabLayoutWrapper
at java.lang.Class.classForName(Native Method)
at java.lang.Class.forName(Class.java:454)
at java.lang.Class.forName(Class.java:379)
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayoutHelper(LayoutBuilder.java:389)
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayoutHelper(LayoutBuilder.java:453)
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:148)
... 18 more
Caused by: java.lang.ClassNotFoundException: example.newviewpager.scrollingtabs.TabLayoutWrapper
... 24 more
** Activity (main) Resume **
[/CODE]
 

Marvel

Active Member
Licensed User
Thanks @Erel
I just got to know about TabStripViewPager and have used it already for my project. Got what I needed to do in 5 mins
It is so easy to implement.
 
Upvote 0
Top