[Android] ActionBarSherlock Jar mismatch! Fix your dependencies error
In Android, when I tried to import ActionBarSherlock, I got a “Jar mismatch! Fix your dependencies” error.
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: /Users/your_username/hoge/ActionBarSherlock/library/libs/android-support-v4.jar
Length: 271754
SHA-1: ababababababababababababababababbabababb
Path: /Users/your_username/fuga/ExampleApp/libs/android-support-v4.jar
Length: 349252
SHA-1: abbbabababababababababbaababababbababbbb
Jar mismatch! Fix your dependencies
This is an error where different versions of android-support-v4.jar (Android Support Package) exist, and the conflict needs to be resolved. The reference site described the method below, but I used a different approach:
You just need to avoid referencing one of them, so instead of ActionBarSherlock project's libs/android-support-v4.jar, delete your own project's libs/android-support-v4.jar from Eclipse. This will eliminate the error.This means you’ll be using the android-support-v4.jar that comes with ActionBarSherlock.
・ActionBarSherlockをアプリで使おうとして導入時”Jar mismatch! Fix your dependencies”と出た時の対処 — Toroとトロは電子機械の夢を見るか
That’s all from the Gemba.