Android Question Viewpager Library - error compiling the example project

ernschd

Active Member
Licensed User
Longtime User
Hello,

I just wanted to compile the NewViewPagerExample1_0 with the new viewpager library by corwin42.
Unfortunately I get the following error:
Kompiliere generierten Java Code. Error
B4A line: 60
TabLayout.SetViewPager(VP)
javac 1.8.0_241
src\example\newviewpager\scrollingtabs\main.java:374: error: cannot access ViewPager
mostCurrent._tablayout.SetViewPager((androidx.viewpager.widget.ViewPager)(mostCurrent._vp.getObject()));
^
class file for android.support.v4.view.ViewPager not found

My DesignSupport Library is Version 3.00.
I copied the 3 files (ViewPager.aar, ViewPager.jar and ViewPager.xml) into the external library directory. I noticed that the ViewPager.jar is only 22 bytes in size (see screenshot).
Can this be the reason for the error?

What can I do?

Thanks in advance.
 

Attachments

  • 7zFM_l8QGFYMZwK.png
    7zFM_l8QGFYMZwK.png
    15.2 KB · Views: 95
Top