我正试图在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
答案 0 :(得分:0)
清理项目并检查所有依赖项(如果您有双重支持库)。
答案 1 :(得分:0)
从你的项目中删除jar android-support-v4.jar,然后从buid路径中引用它,然后清理并构建项目。它会起作用。
答案 2 :(得分:0)
您只需要在appcompat_v7
lib项目中检查一下,HelloActivity1
项目libs
文件夹的android-support-v4.jar
文件夹路径是否相同。
对于前,
如果HelloActivity1
有路径
C://abc/android-support-v4.jar
然后对于appcompat_v7
,它必须与libs
文件夹中的路径相同。
最后清理你的项目并构建它。