本文介绍了Android的支持-V4"多&QUOT之间的冲突;库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我输入2外部库(库A和库B)到我的Eclipse项目。这些库都需要Android的支持 - v4.jar库。所以,编译时,就引起了错误:

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

我读过所有类似的问题,并试图从我的项目中删除库androi支持-v4.jar。按照说明进行操作:属性 - > Java构建路径 - >库 - >选择Android的支持 - v4.jar - >所有按钮都禁用。我不能删除它???

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 ???

即使在情况下,我可以从我的项目中删除Android的支持 - v4.jar,还有2库A和B之间的冲突,因为A和B既需要Android的支持,v4.jar 。如果我从库中删除Android的支持 - v4.jar,所以库中的不能被编译。

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.

推荐答案

感谢@SercanOzdemir你的答案。该解决方案是我的项目,所有的依赖库必须推论只有一个Android的支持 - v4.jar。因此,我要做的就是

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

  • 在我的项目,我从图书馆加入Android的支持 - v4.jar
  • 在库B,我删除其罐子,以及从库中增加了Android的支持 - v4.jar

因此​​,所有的推论只有一个从库中的Android的支持 - v4.jar

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

这篇关于Android的支持-V4"多&QUOT之间的冲突;库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-13 22:11