2013-08-24 54 views
2

在項目中有多個庫。這個問題突然間我的圖書館沒有添加到使用圖書館必不可少的「Android私有圖書館」文件夾中。請幫我解決這個問題。問題發生在工作區中只有一個項目,其他工作都很酷。 請注意:在java構建路徑--->訂單和導出--->已檢查私人圖書館。所以這不能成爲這個問題的問題。 enter image description here庫不會添加到Android中的Android專用庫文件夾中

我現在的SDK工具配置 enter image description here

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 
+1

只需重新啓動你的月食,看看。 –

+0

如果您在控制檯中的eclipse - > project - > clean'後出現錯誤,請將其粘貼。 –

+0

重新啓動沒有解決。 @mansoulx編輯過的問題看看 –

回答

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). 

這意味着,你必須有一個罐子的同一版本在您的項目和你正在使用的所有庫。

要解決它,您可以刪除您的projet中的android-support-v4.jar。當你可以在你的計算機的某個地方選擇一個jar文件(你可以選擇sdk提供的那個文件夾)並將它粘貼到任何地方後,你必須包含它。這解決了我的問題。

0

問題是,我使用的Facebook SDK也需要android支持4 jar,並且在主項目中我還添加了支持4 jar在我的項目中。所以有衝突。 解決方案:從你的主要項目中刪除支持jar 感謝烏拉圭回合時間

0

這是發生在我身上還有,我終於在後臺我有SDK管理器中打開,等待進入我的代理憑據注意。一旦我關閉SDK管理器並重新啓動Eclipse,Android私有庫就顯示出來了。