Jar mismatch error when adding library in eclipse
13,174
Solution 1
Looks like it found the library twice. You need to delete one.
Solution 2
You are using two different revisions of the support library. Delete all of the support library jars and re-copy them into your app (and any other dependencies, if have).
The android-support-v4.jar will be compiled again automatically.
Edit : Should remove Android Dependencies and Android Private Libraries in Libraries index in Java Build Path
Author by
Mr. Bojangles
Updated on June 12, 2022Comments
-
Mr. Bojangles almost 2 years
I am new to Android and I am trying to add a library for viewPagerIndicator as this tutorial instructs me to do. However, when I add the library I get an error stating:
Versions found are: Path: C:\Users\Bryan\workspace\MyPager\libs\android-support-v4.jar Length: 349252 SHA-1: 612846c9857077a039b533718f72db3bc041d389 Path: C:\Users\Bryan\git\Android-ViewPagerIndicator\library\libs\android-support-v4.jar Length: 271754 SHA-1: 53307dc2bd2b69fd5533458ee11885f55807de4b Jar mismatch! Fix your dependencies
How do I resolve this without messing up my build path?
-
arunkumar over 11 yearsAre you using Maven or Eclipse build system?
-
Mr. Bojangles over 11 years@arunkumar I am using Eclipse
-
-
Mr. Bojangles over 11 yearsWhat is the correct procedure for doing that? I only see one library in my dependencies folder
-
James McCracken over 11 yearsIf you've already added some external libraries (like ActionBarSherlock) they sometimes include the support library so you don't even need to add it. Also, if you set up your SDK targets correctly in your manifest (target the newest SDK and set minSDK) then use the built in activity creater (new file->other->android activity) then it will add the support library for you.
-
maephisto over 11 yearsJust delete the one added to the libs folder of your app
-
ksudu94 over 10 yearsI deleted my Dependencies folder... How do i get those folders back :(.