Android-support-v4.jar dependency error

I just created a new empty Android project with minsdk as 2.2 in the last Eclipse Luna. Eclipse automatically added android-support--v4.jar to the libs folder of the project. This causes 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 that I use for another project and was created by old Eclipse (I think it was Juno .. it was part of the ADT package).

I know that the solution is to remove one of the cans, but which one and why?

+6
source share
4 answers

You just need to:

  • Right click on myNewProject project
  • Go to Android Tools> Add Support Library
  • Approve permissions and update library
  • Repeat this process for the appcompat_v7 project

Android Support Library will sync (:

+18
source

You import the appcompat_v7 library, which also has android-v4.jar support, but a different size. Just copy android-v4.jar support from your project library to the appcompat_v7 folder. Folder paths are in your post, for information only.

+2
source
  • Right-click the demoProject project
  • Go to Android Tools> Add Support Library
  • Approve permissions and update library
  • Repeat this process for the appcompat_v7 project (or any library
0
source
  • Look at the path of discrepancies
  • Delete file in project folder> libs
  • Copy the file from the appcompat libs folder to the folder with the project folders
  • Close and reopen Eclipse
  • Clear project
0
source

Source: https://habr.com/ru/post/971863/


All Articles