简体   繁体   中英

Jar mismatch! Fix your dependencies in android-support-v7-appcompat

In bin folder of library project "bin\\android-support-v7-appcompat.jar" it is generates automatically and lib folder of library project "libs\\android-support-v7-appcompat.jar" I put manually.

I got below error:

 Found 2 versions of android-support-v7-appcompat.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: D:\Market App\android_code_lib\android-support-v7-appcompat\bin\android-support-v7-appcompat.jar
Length: 166
    SHA-1: f61784cc598d88c31864ecc32c886b8f97f328a6
Path: D:\Market App\android_code_lib\android-support-v7-appcompat\libs\android-support-v7-appcompat.jar
    Length: 343731
    SHA-1: 3d62997c154488738d1367406fb7ac6074f992e2
Jar mismatch! Fix your dependencies

How to resolve this?

Thanks.

Expand your project and delete appcompatv7.jar from the "libs" folder. Clean your project and then run. Using this method you are keeping one of the jars and removing the other due to which jar mismatch occurs. Hope this helps.

Delete the jar in the libs folder, and then clean and rebuild your project. That worked for me!

从appcompact_v7复制lib文件android-support-v4.jar并将其粘贴到您的项目中。

please check that you have added support library jar file to your project properly.Please go through here How to add support libraries? I have also the same situation and i rechecked the way that i am doing.The above link works for me......

Dont forget to clean and rebuild your project.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM