真的一直在經歷一個惡夢,試圖與Android項目瓦特/ Facebook的工作。噩夢是有效的,然後我必須觸摸我的一個XML,現在Eclipse真的有****牀。我無法運行任何東西。appcombat_v7不會生成,所以我不能建立我的項目
所以我縮小了一下。我的項目有一個可怕的缺乏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工作室是否也會一次又一次地爆炸?
@ peter.petrov感謝您的誠實。這浪費了更少的時間。 – PinkElephantsOnParade 2014-11-21 22:45:19
這個問題真是一團糟。似乎沒有人真的有一個體面的解決方案。有一次,我還花了4-5個小時在這一天,所有建議的「解決方案」都沒有任何意義(問題本身也沒有)。只需重新創建您的項目,看看是否有幫助。 – 2014-11-21 22:45:34
爲什麼使用jar而不是通過Maven導入它們? – dannyroa 2014-11-21 23:20:10