这是不是一个问题,因为我已经找到了答案
新的Android SDK 17对jar文件更严格的相关性检查。
与此同时,他们增加了一个罐子在此之前,我认为是不存在。我的项目遇到了新的 annotations.jar
之间的SDK,并且我已经使用的冲突之一。被对方更换一会的工作,如果他们有相同的起源。
我annotations.jar是JetBrains公司,通过Guice的依赖,因此替换它不工作。这是我得到的错误:
[2012-03-22 10点54分27秒 - 的MyApp]罐不匹配!修正你的依赖 [2012-03-22 10点54分46秒 - 的MyApp] annotations.jar的依赖项列表中找到2个版本, [2012-03-22 10时54分46秒 - 的MyApp]但不是所有的版本是相同的(检查只有在这个时候根据SHA-1)。 [2012-03-22 10时54分46秒 - 的MyApp]所有版本的库必须相同,在这个时候。 [2012-03-22 10点54分46秒 - 的MyApp]发现版本: [2012-03-22 10点54分46秒 - 的MyApp]路径:/opt/android-sdk-linux_x86/tools/support/annotations.jar [2012-03-22 10点54分46秒 - 的MyApp]长度:1463 [2012-03-22 10点54分46秒 - 的MyApp] SHA-1:6f59fa3a223df6f332bee8b8bffb526f7445018b [2012-03-22 10点54分46秒 - 的MyApp]路径:/home/christine/workspace/MyApp/libs/annotations.jar [2012-03-22 10点54分46秒 - 的MyApp]长度:7593 [2012-03-22 10点54分46秒 - 的MyApp] SHA-1:e28fe9e70610beb9ef49226a9e56fed7a86e742a [2012-03-22 10点54分46秒 - 的MyApp]罐不匹配!修复你的依赖
解决方案
我annotations.jar是JetBrains公司,通过Guice的依赖。我改名这个文件JetBrains公司,annotation.jar它解决我的问题。
This is not a question because I already found the answer.
The new Android SDK 17 has a stricter dependency check on jar files.
At the same time, they added a jar that I think wasn't there before. My project encountered a conflict between the new annotations.jar
in the SDK and one that I already used. Replacing one by the other would work, if they have the same origin.
My annotations.jar is from jetbrains, via a Guice dependency, so replacing it doesn't work. This is the error I got:
[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
解决方案
My annotations.jar is from jetbrains, via a Guice dependency. I renamed this file to jetbrains-annotation.jar which solved my problem.
相关推荐
最新文章