项目中有多个库。问题突然之间我的库没有添加到“Android私有库”文件夹,这对于使用库是必不可少的。请帮我解决这个问题。问题是在工作区中只有一个项目,其他工作很酷。 请注意:在java构建路径中--->订单和出口--->检查了私人图书馆。所以这不能解决这个问题。
我目前的SDK工具配置
Console message on cleaning:
[2013-08-24 18:03:33 - Twitter4jSample] Unable to resolve target 'android-7'
[2013-08-24 18:03:34 - myproject] Found 2 versions of android-support-v4.jar in the dependency list,
[2013-08-24 18:03:34 - myproject] but not all the versions are identical (check is based on SHA-1 only at this time).
[2013-08-24 18:03:34 - myproject] All versions of the libraries must be the same at this time.
[2013-08-24 18:03:34 - myproject] Versions found are:
[2013-08-24 18:03:34 - myproject] Path: D:\Project BackUps\project2 gen\dev\facebookSDK\libs\android-support-v4.jar
[2013-08-24 18:03:34 - myproject] Length: 484258
[2013-08-24 18:03:34 - myproject] SHA-1: bd6479f5dd592790607e0504e66e0f31c2b4d308
[2013-08-24 18:03:34 - myproject] Path: D:\Project BackUps\project2 gen\dev\projectAPP\libs\android-support-v4.jar
[2013-08-24 18:03:34 - myproject] Length: 556198
[2013-08-24 18:03:34 - myproject] SHA-1: 4a6be13368bb64c5a0b0460632d228a1a915f58f
[2013-08-24 18:03:34 - myproject] Jar mismatch! Fix your dependencies
[2013-08-24 18:03:34 - myproject] Found 2 versions of android-support-v4.jar in the dependency list,
[2013-08-24 18:03:34 - myproject] but not all the versions are identical (check is based on SHA-1 only at this time).
[2013-08-24 18:03:34 - myproject] All versions of the libraries must be the same at this time.
[2013-08-24 18:03:34 - myproject] Versions found are:
[2013-08-24 18:03:34 - myproject] Path: D:\Project BackUps\project2 gen\dev\facebookSDK\libs\android-support-v4.jar
[2013-08-24 18:03:34 - myproject] Length: 484258
[2013-08-24 18:03:34 - myproject] SHA-1: bd6479f5dd592790607e0504e66e0f31c2b4d308
[2013-08-24 18:03:34 - myproject] Path: D:\Project BackUps\project2 gen\dev\projectAPP\libs\android-support-v4.jar
[2013-08-24 18:03:34 - myproject] Length: 556198
[2013-08-24 18:03:34 - myproject] SHA-1: 4a6be13368bb64c5a0b0460632d228a1a915f58f
[2013-08-24 18:03:34 - myproject] Jar mismatch! Fix your dependencies
[2013-08-24 18:03:49 - myproject] Found 2 versions of android-support-v4.jar in the dependency list,
[2013-08-24 18:03:49 - myproject] but not all the versions are identical (check is based on SHA-1 only at this time).
[2013-08-24 18:03:49 - myproject] All versions of the libraries must be the same at this time.
[2013-08-24 18:03:49 - myproject] Versions found are:
[2013-08-24 18:03:49 - myproject] Path: D:\Project BackUps\project2 gen\dev\facebookSDK\libs\android-support-v4.jar
[2013-08-24 18:03:49 - myproject] Length: 484258
[2013-08-24 18:03:49 - myproject] SHA-1: bd6479f5dd592790607e0504e66e0f31c2b4d308
[2013-08-24 18:03:49 - myproject] Path: D:\Project BackUps\project2 gen\dev\projectAPP\libs\android-support-v4.jar
[2013-08-24 18:03:49 - myproject] Length: 556198
[2013-08-24 18:03:49 - myproject] SHA-1: 4a6be13368bb64c5a0b0460632d228a1a915f58f
[2013-08-24 18:03:49 - myproject] Jar mismatch! Fix your dependencies
[2013-08-24 18:04:07 - myproject] Found 2 versions of android-support-v4.jar in the dependency list,
[2013-08-24 18:04:07 - myproject] but not all the versions are identical (check is based on SHA-1 only at this time).
[2013-08-24 18:04:07 - myproject] All versions of the libraries must be the same at this time.
[2013-08-24 18:04:07 - myproject] Versions found are:
[2013-08-24 18:04:07 - myproject] Path: D:\Project BackUps\project2 gen\dev\facebookSDK\libs\android-support-v4.jar
[2013-08-24 18:04:07 - myproject] Length: 484258
[2013-08-24 18:04:07 - myproject] SHA-1: bd6479f5dd592790607e0504e66e0f31c2b4d308
[2013-08-24 18:04:07 - myproject] Path: D:\Project BackUps\project2 gen\dev\projectAPP\libs\android-support-v4.jar
[2013-08-24 18:04:07 - myproject] Length: 556198
[2013-08-24 18:04:07 - myproject] SHA-1: 4a6be13368bb64c5a0b0460632d228a1a915f58f
[2013-08-24 18:04:07 - myproject] Jar mismatch! Fix your dependencies
[2013-08-24 18:04:17 - myproject] Found 2 versions of android-support-v4.jar in the dependency list,
[2013-08-24 18:04:17 - myproject] but not all the versions are identical (check is based on SHA-1 only at this time).
[2013-08-24 18:04:17 - myproject] All versions of the libraries must be the same at this time.
[2013-08-24 18:04:17 - myproject] Versions found are:
[2013-08-24 18:04:17 - myproject] Path: D:\Project BackUps\project2 gen\dev\facebookSDK\libs\android-support-v4.jar
[2013-08-24 18:04:17 - myproject] Length: 484258
[2013-08-24 18:04:17 - myproject] SHA-1: bd6479f5dd592790607e0504e66e0f31c2b4d308
[2013-08-24 18:04:17 - myproject] Path: D:\Project BackUps\project2 gen\dev\projectAPP\libs\android-support-v4.jar
[2013-08-24 18:04:17 - myproject] Length: 556198
[2013-08-24 18:04:17 - myproject] SHA-1: 4a6be13368bb64c5a0b0460632d228a1a915f58f
[2013-08-24 18:04:17 - myproject] Jar mismatch! Fix your dependencies
答案 0 :(得分:11)
您的项目中有support library added
个不同:
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).
这意味着您必须在项目中使用该jar的相同版本以及您正在使用的所有库。
要解决此问题,您可以删除项目中的android-support-v4.jar
。之后你可以在计算机的某个地方选择一个jar(你可以选择sdk提供的那个),然后将它粘贴到任何地方你必须包含它。这解决了我的问题。
答案 1 :(得分:0)
问题是我正在使用facebook SDK,它还需要android支持4 jar,在主项目中我也在我的项目中添加了支持4 jar。所以发生了冲突。 解决方案:从主项目中删除支持jar 谢谢你的时间
答案 2 :(得分:0)
这也发生在我身上,我终于注意到在后台我打开了SDK Manager,等待输入我的代理凭据。关闭SDK Manager并重新启动Eclipse后,Android私有库显示备份。