Question

I am trying to import the library project from https://github.com/JakeWharton/Android-ViewPagerIndicator by doing the following steps

enter image description here

enter image description here enter image description here

After importing the Project i get the following error.

enter image description here enter image description here

Not sure how to solve this problem. I am not from a JAVA background so i find it difficult to understand how to resolve this.

Was it helpful?

Solution

You're 99% of the way there. Two small things:

  • The library builds against Android 1.6 by default which you do not have installed which is why you are receiving the two errors in the final screenshot. Changing to 2.2 has no consequence though.

  • More importantly, you need to include the Android Compatibility Library in your build path. I have included the latest .jar in the libs/ folder which Eclipse/ADT will usually pick up. In your case it did not so you need to expand the libs/ folder, right click on android-support-v4.jar, and select 'Add to build path'.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top