PagerSlidingTabStrip error opening

When I import the library folder into PagerSlidingTabStrip for an eclipse, there are already (many) errors in PagerSlidingTabStrip.java

I'm new to Android development, so I'm wondering if I did something wrong.

What I've done:

  • Download PagerSlidingTabStrip from github ( https://github.com/astuetz/PagerSlidingTabStrip ) by clicking "Download ZIP" on the right side of the page.
  • In Eclipse, right-click on Package Explorer and select Import
  • Select "Existing Android Code in Workspace"
  • Select the "library" folder (not the entire PagerSlidingTabStrip-master folder that just loaded, just the "Library" folder is in it) by clicking the "Browse" button

then the library is imported, but there are many errors in PagerSlidingTabStrip.java

I found that this library should be useful to me, but cannot even import the library into my project.

Can anybody help? Thanks

+4
source share
1 answer

I had the same problem and found a solution.

go to your pagerslidingtabstrip prroject properties, then create a java build path and then order and export (right). check if android-support-v4.jar support is present and displayed? if it is not there, go to the libraries, then add the external jar, and then add from the sdk folder.

+1
source

All Articles