【发布时间】:2015-01-28 03:29:38
【问题描述】:
我创建了一个新的 android 应用程序项目,但一创建就出错。
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).
All versions of the libraries must be the same at this time.
Versions found are:
Path: /asuspc/workspace/appcompat_v7/libs/android-support-v4.jar
Length: 349252
SHA-1: 612846c9857077a039b533718f72db3bc041d389
Path: /asuspc/workspace/USCConverter/libs/android-support-v4.jar
Length: 337562
SHA-1: 27c24d26e4c5d57976e6926367985548678e913c
然后我搜索了答案,有人说我应该从 libs 文件夹中删除 android-support-v4.jar 并只使用一个。 当我从 USCConverter 项目中删除它时,它没有解决。 然后我恢复它并从 appcompat_v7 中删除,现在没有任何错误。 但我担心这会搞砸一些事情吗? 我不觉得删除文件会解决问题。 对不起,如果这听起来很愚蠢,但我是新手,这个 appcompat_v7 到底是什么? 为什么我之前创建的项目没有这个错误,即使他们也有 android-support-v4.jar? 提前致谢!
【问题讨论】:
-
从你的项目中删除
android-support-v4.jar,清理它,如果出现任何错误,尝试从你的SDK中添加它。