更新Android支持库后发生错误& Android支持存储库

时间:2015-01-05 13:44:31

标签: android sdk

今天我更新了 Android支持库 Android支持信息库
现在,当我创建一个新项目后发生错误。

[2015-01-05 18:45:15 - CardLayout] Found 2 versions of android-support-v4.jar in the dependency list,
[2015-01-05 18:45:15 - CardLayout] but not all the versions are identical (check is based on SHA-1 only at this time).
[2015-01-05 18:45:15 - CardLayout] All versions of the libraries must be the same at this time.
[2015-01-05 18:45:15 - CardLayout] Versions found are:
[2015-01-05 18:45:15 - CardLayout] Path: D:\WorkingProjects\CardLayout\libs\android-support-v4.jar
[2015-01-05 18:45:15 - CardLayout]  Length: 995624
[2015-01-05 18:45:15 - CardLayout]  SHA-1: 3e4e879d0b3dc11f2feb3f55e77e3b5bd82c4a28
[2015-01-05 18:45:15 - CardLayout] Path: D:\WorkingProjects\appcompat_v7\libs\android-support-v4.jar
[2015-01-05 18:45:15 - CardLayout]  Length: 995386
[2015-01-05 18:45:15 - CardLayout]  SHA-1: a13f8fe2c278737e2f0b6fcf00f6b2ae4034aacf
[2015-01-05 18:45:15 - CardLayout] Jar mismatch! Fix your dependencies


我该怎么办?

1 个答案:

答案 0 :(得分:0)

android-support-v4.jar的两个不同版本存在冲突。

如果你还在使用eclipse,请执行:

  1. 每个项目:
    1. 右键单击您的项目
    2. 点击" Android工具" - > "添加支持库..."
  2. 清洁
  3. 构建
  4. 运行