appcombat_v7将无法构建,因此我无法构建我的项目

时间:2014-11-21 22:36:23

标签: java android eclipse facebook r.java-file

真正经历了一场噩梦,试图与Facebook的Android项目合作。噩梦是有效的,然后我必须触及我的一个XML,现在Eclipse真的有了****床。我无法运行任何东西。

所以我把它缩小了一点。我的项目有可怕的缺乏R文件。清洁无效。当我尝试添加com.example.packagename.R的导入时,它并不知道我在说什么。当我尝试运行我的项目时:

[2014-11-21 16:58:56 - DiabetesMadeEasy] All versions of the libraries must be the same at this time.
[2014-11-21 16:58:56 - DiabetesMadeEasy] Versions found are:
[2014-11-21 16:58:56 - DiabetesMadeEasy] Path:    C:\Users\Phil\workspace\appcompat_v7\libs\android-support-v4.jar
[2014-11-21 16:58:56 - DiabetesMadeEasy]    Length: 995386
[2014-11-21 16:58:56 - DiabetesMadeEasy]    SHA-1: a13f8fe2c278737e2f0b6fcf00f6b2ae4034aacf
[2014-11-21 16:58:56 - DiabetesMadeEasy] Path: C:\Users\Phil\Desktop\facebook-android-sdk-3.20.0 (1)\facebook-android-sdk-3.20.0\facebook\libs\android-support-v4.jar
[2014-11-21 16:58:56 - DiabetesMadeEasy]    Length: 758727
[2014-11-21 16:58:56 - DiabetesMadeEasy]    SHA-1: efec67655f6db90757faa37201efcee2a9ec3507
[2014-11-21 16:58:56 - DiabetesMadeEasy] Jar mismatch! Fix your dependencies
[2014-11-21 16:58:56 - DiabetesMadeEasy] Found 2 versions of android-support-v4.jar in the dependency list,
[2014-11-21 16:58:56 - DiabetesMadeEasy] but not all the versions are identical (check is based on SHA-1 only at this time).
[2014-11-21 16:58:56 - DiabetesMadeEasy] All versions of the libraries must be the same at this time.
[2014-11-21 16:58:56 - DiabetesMadeEasy] Versions found are:
[2014-11-21 16:58:56 - DiabetesMadeEasy] Path: C:\Users\Phil\workspace\appcompat_v7\libs\android-support-v4.jar
[2014-11-21 16:58:56 - DiabetesMadeEasy]    Length: 995386
[2014-11-21 16:58:56 - DiabetesMadeEasy]    SHA-1: a13f8fe2c278737e2f0b6fcf00f6b2ae4034aacf
[2014-11-21 16:58:56 - DiabetesMadeEasy] Path: C:\Users\Phil\Desktop\facebook-android-sdk-3.20.0 (1)\facebook-android-sdk-3.20.0\facebook\libs\android-support-v4.jar
[2014-11-21 16:58:56 - DiabetesMadeEasy]    Length: 758727
[2014-11-21 16:58:56 - DiabetesMadeEasy]    SHA-1: efec67655f6db90757faa37201efcee2a9ec3507
[2014-11-21 16:58:56 - DiabetesMadeEasy] Jar mismatch! Fix your dependencies
[2014-11-21 16:59:04 - DiabetesMadeEasy] Found 2 versions of android-support-v4.jar in the dependency list,
[2014-11-21 16:59:04 - DiabetesMadeEasy] but not all the versions are identical (check is based on SHA-1 only at this time).
[2014-11-21 16:59:04 - DiabetesMadeEasy] All versions of the libraries must be the same at this time.
[2014-11-21 16:59:04 - DiabetesMadeEasy] Versions found are:
[2014-11-21 16:59:04 - DiabetesMadeEasy] Path: C:\Users\Phil\workspace\appcompat_v7\libs\android-support-v4.jar
[2014-11-21 16:59:04 - DiabetesMadeEasy]    Length: 995386
[2014-11-21 16:59:04 - DiabetesMadeEasy]    SHA-1: a13f8fe2c278737e2f0b6fcf00f6b2ae4034aacf
[2014-11-21 16:59:04 - DiabetesMadeEasy] Path: C:\Users\Phil\Desktop\facebook-android-sdk-3.20.0 (1)\facebook-android-sdk-3.20.0\facebook\libs\android-support-v4.jar
[2014-11-21 16:59:04 - DiabetesMadeEasy]    Length: 758727
[2014-11-21 16:59:04 - DiabetesMadeEasy]    SHA-1: efec67655f6db90757faa37201efcee2a9ec3507
[2014-11-21 16:59:04 - DiabetesMadeEasy] Jar mismatch! Fix your dependencies

然后有一百万个错误引用这些罐子。我不知道如何修理这些罐子。我担心我永远不会解决它们。我想下载另一个编辑器并从头开始,但我不确定这是否可以恢复。

当我尝试构建appcombat_v7时,它将无法构建。我在其中一个文件中得到了一个模糊的错误。 RES /值/值-大V14 / themes_base.xml。有些资源无法找到。

如何修理这些罐子?我在Eclipse中...... Android工作室同样一次又一次爆炸吗?

1 个答案:

答案 0 :(得分:0)

  

在依赖项列表

中找到2个版本的android-support-v4.jar

您需要在项目中使用相同的android-support-v4.jar库及其所有依赖项。尝试从项目的lib文件夹中复制它并将其粘贴到您正在使用的库中。