Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Conflict between multiple "android-support-v4" libraries

I import 2 external libraries (library A, and library B) into my project in Eclipse. These libraries both need "android-support-v4.jar" library. So when compiling, it caused error:

Jar mismatch! Fix your dependencies

I've read all similar questions, and did try to delete the library "androi-support-v4.jar" from my project. Follow the instruction: Properties-> Java Build Path -> Libraries -> Select "android-support-v4.jar" -> all buttons are disable. I cannot delete it ???

enter image description here

Even, in the case I could delete "android-support-v4.jar" from my project, there is still a conflict between 2 libraries A and B. Because both A and B need "android-support-v4.jar". If I delete "android-support-v4.jar" from library A so library A cannot be compiled.

like image 406
chipbk10 Avatar asked May 12 '13 13:05

chipbk10


1 Answers

Thanks @SercanOzdemir for your answer. The solution is my project and all dependencies libraries must infer to only one "android-support-v4.jar". So what I do is

  • In my project, I add "android-support-v4.jar" from Library A
  • In the library B, I delete its jar, and also add "android-support-v4.jar" from Library A

So all infer to only one "android-support-v4.jar" from Library A

like image 121
chipbk10 Avatar answered Sep 29 '22 18:09

chipbk10