Recently, an open-source Library Project Android-viewpagerindicator was used in the development of a project.
This project appears as a library, for example:
This project contains the android-support-v4.jar
The library is referenced in another project, for example:
Then compile the project, and the error described in the title is repeated.
Since the project itself does not have the android-support-v4.jar package, but after adding the first project as a library file, this android-support-v4.jar appears in the project.
Solution:
1. First, the project references the first project as the library to cancel, that is, remove the entry and refresh the project.
2. Set the first library project as follows, and ensure that the ADT version is high enough:
This is mainly to remove the android private libraries option, so that other projects that reference this project will not add the pirvate libraries of this project to their own dependencies.
3. re-set your project to depend on this library project, compile, pass, and run it. OK