Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

项目导入到Eclipse中的时候报错:存在两个android-support-v4.jar包 #112

Closed
WuShaojun opened this issue Apr 24, 2013 · 8 comments

Comments

@WuShaojun
Copy link

报错的日志如下,现在的版本中应该用哪个目录下的android-support-v4.jar包呢?
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: /opt/WorkSpaces/Woxingtianxia/DummyActivity/libs/android-support-v4.jar
Length: 393154
SHA-1: 307c1cc532eabbf1d135b43e5c983c9da700449d
Path: /opt/WorkSpaces/Woxingtianxia/slidingmenulibrary/libs/android-support-v4.jar
Length: 385685
SHA-1: 48c94ae70fa65718b382098237806a5909bb096e
Jar mismatch! Fix your dependencies

@tesla1984
Copy link

用哪个无所谓,只是冲突而已,删除其中一个或者将其中一个jar覆盖另外一个library中的jar就可以了

@WuShaojun
Copy link
Author

恩,谢谢,我整理了一下libs文件夹,删除了其中一个jar包,问题已经解决了。

@Jchuan
Copy link

Jchuan commented Dec 18, 2014

能方便告诉一下怎么解决的么,这两天也遇到过这个问题,关键现在是新建一个项目,项目里面libs文件夹下就会多一个jar包,是要我删除自带的那个么?

@KeepSilenceQP
Copy link

把发生冲突的包调整一致就可以。比如,把其中的一个包拷贝到另一个包所在的位置,将其覆盖。

@Jchuan
Copy link

Jchuan commented Dec 20, 2014

我现在的问题不是导入工程报错,是我自己创建一个项目,里面的libs就会多一个support-v4包,然后报的错是appcompat里的包和项目里面的包有冲突,就不知道怎么办了,要是把appacompat里面的删掉报的错更多。。。

@tesla1984
Copy link

有的IDE创建项目libs下就会默认加上v4包,一般你开发的工程中需要导入library project的话,把本身项目的那个删除,然后把library project的libs中jar包export就行了,这样你的项目就是用library project的jar包了,你应该用的是eclipse,在那个java build path -> order and export中选中复选框就是export

@sharockguan
Copy link

想先测试一下作者给的Demo,但也是遇到了跟你一样的问题,而且Demo出现了一个红色感叹号,libary也是报错,为什么呢?

@sharockguan
Copy link

library没有生成jar包

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants