Android 罐子不匹配!修复控制台中的依赖项错误

Android 罐子不匹配!修复控制台中的依赖项错误,android,eclipse,Android,Eclipse,我试图在eclipse中运行hello World,但在控制台中出现了此错误 [2014-11-18 23:50:05 - HelloActivity1] Found 2 versions of android-support-v4.jar in the dependency list, [2014-11-18 23:50:05 - HelloActivity1] but not all the versions are identical (check is based on SHA-

我试图在eclipse中运行hello World,但在控制台中出现了此错误

[2014-11-18 23:50:05 - HelloActivity1] Found 2 versions of android-support-v4.jar in the dependency list,
    [2014-11-18 23:50:05 - HelloActivity1] but not all the versions are identical (check is based on SHA-1 only at this time).
    [2014-11-18 23:50:05 - HelloActivity1] All versions of the libraries must be the same at this time.
    [2014-11-18 23:50:05 - HelloActivity1] Versions found are:
    [2014-11-18 23:50:05 - HelloActivity1] Path: /Users/muhammadatif/Documents/workspace/HelloActivity1/libs/android-support-v4.jar
    [2014-11-18 23:50:05 - HelloActivity1]  Length: 995386
    [2014-11-18 23:50:05 - HelloActivity1]  SHA-1: a13f8fe2c278737e2f0b6fcf00f6b2ae4034aacf
    [2014-11-18 23:50:05 - HelloActivity1] Path: /Users/muhammadatif/Documents/workspace/appcompat_v7/libs/android-support-v4.jar
    [2014-11-18 23:50:05 - HelloActivity1]  Length: 758727
    [2014-11-18 23:50:05 - HelloActivity1]  SHA-1: efec67655f6db90757faa37201efcee2a9ec3507
    [2014-11-18 23:50:05 - HelloActivity1] Jar mismatch! Fix your dependencies
    [2014-11-19 00:15:55 - BlogReader] Unable to resolve target 'Google Inc.:Google APIs (x86 System Image):19'
    [2014-11-19 00:15:56 - HelloActivity1] Found 2 versions of android-support-v4.jar in the dependency list,
    [2014-11-19 00:15:56 - HelloActivity1] but not all the versions are identical (check is based on SHA-1 only at this time).
    [2014-11-19 00:15:56 - HelloActivity1] All versions of the libraries must be the same at this time.
    [2014-11-19 00:15:56 - HelloActivity1] Versions found are:
    [2014-11-19 00:15:56 - HelloActivity1] Path: /Users/muhammadatif/Documents/workspace/HelloActivity1/libs/android-support-v4.jar
    [2014-11-19 00:15:56 - HelloActivity1]  Length: 995386
    [2014-11-19 00:15:56 - HelloActivity1]  SHA-1: a13f8fe2c278737e2f0b6fcf00f6b2ae4034aacf
    [2014-11-19 00:15:56 - HelloActivity1] Path: /Users/muhammadatif/Documents/workspace/appcompat_v7/libs/android-support-v4.jar
    [2014-11-19 00:15:56 - HelloActivity1]  Length: 758727
    [2014-11-19 00:15:56 - HelloActivity1]  SHA-1: efec67655f6db90757faa37201efcee2a9ec3507
    [2014-11-19 00:15:56 - HelloActivity1] Jar mismatch! Fix your dependencies

如果您有双支持库,请清理项目并检查所有依赖项。

从项目中删除jar android-support-v4.jar,并从构建路径中删除其引用,然后清理并构建项目。它会起作用。

解决方案: 您只需检查
appcompat\u v7
lib项目和
HelloActivity1
project的
libs
文件夹是否与
android-support-v4.jar
具有相同的路径

例如

如果
HelloActivity1
有路径

C://abc/android-support-v4.jar
然后,对于
appcompat_v7
,它必须与
libs
文件夹中的路径相同


最后清理并构建项目。

堆栈跟踪说明了一切
在依赖项列表中找到了两个版本的android-support-v4.jar
在您的项目中,您有两个android-support-v4.jar库。您应该在项目中只使用一个库,但它没有解决问题。你能帮我更多吗?正是问题中提到的。我刚刚更新了lolipop更新,然后尝试用api级别21编译你的应用程序。