2

project に複数のライブラリがあります。問題は突然、ライブラリを使用するために不可欠な「Android private libraries」フォルダにライブラリが追加されないことです。問題を解決してください。ワークスペース内の単一のプロジェクトでのみ問題が発生しており、他のプロジェクトは問題なく動作しています。Pls note: 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
4

3 に答える 3

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の1つを選択した後(sdkによって提供されたものを選択できます)、それをどこにでも貼り付けた後、それを含める必要があります。これで問題は解決しました。

于 2013-08-24T13:06:13.553 に答える
0

問題は、Android サポート 4 jar も必要とする facebook SDK を使用していたことと、メイン プロジェクトでもサポート 4 jar をプロジェクトに追加したことでした。SO競合がありました。解決策: メイン プロジェクトからサポート jar を削除してください。お時間をいただきありがとうございます。

于 2013-08-24T13:08:37.643 に答える