android-support-v4.jar依赖错误

fai*_*zal 6 eclipse android android-support-library

我刚刚minsdk在最新的Eclipse Luna.Eclipse中创建了一个新的空白Android项目,并在项目android-support--v4.jar的libs文件夹中自动添加了一个.这导致控制台出错:

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
Run Code Online (Sandbox Code Playgroud)

这是因为我还有一个appcompat_v7支持库项目,我将其用于另一个项目,并由较旧的Eclipse创建(我认为它是Juno ..它是ADT包的一部分).

我知道解决方案是删除其中一个罐子,但是哪个和为什么?

cok*_*190 18

你只需要:

  1. 右键单击项目myNewProject
  2. 转到"Android工具">"添加支持库"
  3. 批准权限并让它更新库
  4. 对项目appcompat_v7重复此过程

Android支持库将同步(: