Android的支持,v4.jar相关性错误 [英] android-support-v4.jar dependency error
问题描述
我刚刚在最新的Eclipse Luna.Eclipse自动添加一个 Android的支持,创建了
项目的libs文件夹。这是在控制台导致错误: minsdk
一个新的空白Android项目为2.2的.jar
I just created a new blank Android project with minsdk
as 2.2 in the latest Eclipse Luna.Eclipse automatically added an android-support--v4.jar
in the libs folder of the project. This is causing an error in the console :
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: /home/faizal/DEV/ADT workspace/myNewProject/libs/android-support-v4.jar
Length: 758727
SHA-1: efec67655f6db90757faa37201efcee2a9ec3507
Path: /home/faizal/DEV/ADT workspace/appcompat_v7/libs/android-support-v4.jar
Length: 648327
SHA-1: ded9acc6a9792b8f1afc470f0c9cd36d178914cd
Jar mismatch! Fix your dependencies
这是因为我也有一个appcompat_v7支持库项目,我使用的另一个项目,是由一个旧的Eclipse(我认为这是Juno..it是ADT包的一部分)。
This is because I also have an appcompat_v7 support library project, which I am using for another project and was created by an older Eclipse(i think it was Juno..it was part of the ADT bundle).
我知道了解决方法是删除罐子之一,但哪一个,为什么?
I know the solution is to remove one of the jars, but which one and why?
推荐答案
您只需要:
- 右键单击该项目myNewProject
- 进入Android的工具 - >添加支持库
- 在批准的权限,让它更新库
- 在重复此过程,项目appcompat_v7
Android的支持库届时将同步(:
The Android Support Library will then be in sync (:
这篇关于Android的支持,v4.jar相关性错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!