2012-03-22 9 views
13

これは疑問ではありません。すでに回答が見つかりましたSDK 17のAndroid厳密な依存関係チェック

新しいAndroid SDK 17では、jarファイルのより厳密な依存性チェックが行われています。

同時に、彼らは私が以前にはなかったと思う瓶を加えました。私のプロジェクトで、SDKの新しいannotations.jarと私がすでに使用していたものとの間で競合が発生しました。それらが同じ起源を有する場合、一方を他方に置き換えることができる。

私のannotations.jarはjetbrainsのもので、Guiceの依存関係を使用しているため、置き換えられません。これは私が持っているエラーです:

[2012-03-22 10:54:27 - MyApp] Jar mismatch! Fix your dependencies 
[2012-03-22 10:54:46 - MyApp] Found 2 versions of annotations.jar in the dependency list, 
[2012-03-22 10:54:46 - MyApp] but not all the versions are identical (check is based on SHA-1 only at this time). 
[2012-03-22 10:54:46 - MyApp] All versions of the libraries must be the same at this time. 
[2012-03-22 10:54:46 - MyApp] Versions found are: 
[2012-03-22 10:54:46 - MyApp] Path: /opt/android-sdk-linux_x86/tools/support/annotations.jar 
[2012-03-22 10:54:46 - MyApp] Length: 1463 
[2012-03-22 10:54:46 - MyApp] SHA-1: 6f59fa3a223df6f332bee8b8bffb526f7445018b 
[2012-03-22 10:54:46 - MyApp] Path: /home/christine/workspace/MyApp/libs/annotations.jar 
[2012-03-22 10:54:46 - MyApp] Length: 7593 
[2012-03-22 10:54:46 - MyApp] SHA-1: e28fe9e70610beb9ef49226a9e56fed7a86e742a 
[2012-03-22 10:54:46 - MyApp] Jar mismatch! Fix your dependencies
+0

http://groups.google.com/group/actionbarsherlock/browse_thread/thread/b00f96062f61ea9e – Vivek

+0

これは同じ問題ではありません... – Christine

+0

@Christineそれを解決しましたか? –

答えて

2

私のannotations.jarは、Guice依存関係を介してjetbrainsから来ました。このファイルの名前をjetbrains-annotation.jarに変更し、私の問題を解決しました。