android-support-v4.jar dependency error

android, android-support-library, eclipse

Solution

You just need to :

- Right Click the project myNewProject

- Go To "Android Tools" > "Add Support Library"

- Approve the permissions and let it update the library

- Repeat this process for the project appcompat_v7

The Android Support Library will then be in sync (:

Problem

I just created a new blank Android project with `minsdk` as 2.2 in the latest Eclipse Luna.Eclipse automatically added an `android-support--v4.jar` in the libs folder of the project. This is causing an error in the console : ``` Found 2 versions of android-support-v4.jar in the dependency list, but not all the versions are identical (check is based on SHA-1 only at this time). All versions of the libraries must be the same at this time. Versions found are: Path: /home/faizal/DEV/ADT workspace/myNewProject/libs/android-support-v4.jar Length: 758727 SHA-1: efec67655f6db90757faa37201efcee2a9ec3507 Path: /home/faizal/DEV/ADT workspace/appcompat_v7/libs/android-support-v4.jar Length: 648327 SHA-1: ded9acc6a9792b8f1afc470f0c9cd36d178914cd Jar mismatch! Fix your dependencies ``` This is because I also have an appcompat_v7 support library project, which I am using for another project and was created by an older Eclipse(i think it was Juno..it was part of the ADT bundle). I know the solution is to remove one of the jars, but which one and why?

Original source