Android importing Lib project
-
27-10-2019 - |
문제
I am trying to import the library project from https://github.com/JakeWharton/Android-ViewPagerIndicator by doing the following steps
After importing the Project i get the following error.
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.
해결책
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 thelibs/
folder which Eclipse/ADT will usually pick up. In your case it did not so you need to expand thelibs/
folder, right click onandroid-support-v4.jar
, and select 'Add to build path'.