2014-11-22 58 views
2
[2014-11-22 07:46:34 - aa] D:\EclipseAndroidWorkspace\Leaning_exercise\appcompat_v7\res\values-large-v14\themes_base.xml:19: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.Base.AppCompat.DialogWhenLarge.Base'. 
[2014-11-22 07:46:34 - aa] D:\EclipseAndroidWorkspace\Leaning_exercise\appcompat_v7\res\values-large-v14\themes_base.xml:22: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.Base.AppCompat.Light.DialogWhenLarge.Base'. 
[2014-11-22 08:04:40 - aaa] D:\EclipseAndroidWorkspace\Leaning_exercise\appcompat_v7\res\values-large-v14\themes_base.xml:19: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.Base.AppCompat.DialogWhenLarge.Base'. 
[2014-11-22 08:04:40 - aaa] 
[2014-11-22 08:04:40 - aaa] D:\EclipseAndroidWorkspace\Leaning_exercise\appcompat_v7\res\values-large-v14\themes_base.xml:22: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.Base.AppCompat.Light.DialogWhenLarge.Base'. 
[2014-11-22 08:04:40 - aaa] 
[2014-11-22 08:04:41 - aaa] D:\EclipseAndroidWorkspace\Leaning_exercise\appcompat_v7\res\values-large-v14\themes_base.xml:19: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.Base.AppCompat.DialogWhenLarge.Base'. 
[2014-11-22 08:04:41 - aaa] 
[2014-11-22 08:04:41 - aaa] D:\EclipseAndroidWorkspace\Leaning_exercise\appcompat_v7\res\values-large-v14\themes_base.xml:22: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.Base.AppCompat.Light.DialogWhenLarge.Base'. 
[2014-11-22 08:04:41 - aaa] 
[2014-11-22 08:04:44 - aaa] D:\EclipseAndroidWorkspace\Leaning_exercise\appcompat_v7\res\values-large-v14\themes_base.xml:19: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.Base.AppCompat.DialogWhenLarge.Base'. 
[2014-11-22 08:04:44 - aaa] 
[2014-11-22 08:04:44 - aaa] D:\EclipseAndroidWorkspace\Leaning_exercise\appcompat_v7\res\values-large-v14\themes_base.xml:22: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.Base.AppCompat.Light.DialogWhenLarge.Base'. 
[2014-11-22 08:04:44 - aaa] 
[2014-11-22 08:07:16 - aaa] D:\EclipseAndroidWorkspace\Leaning_exercise\appcompat_v7\res\values-large-v14\themes_base.xml:19: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.Base.AppCompat.DialogWhenLarge.Base'. 
[2014-11-22 08:07:16 - aaa] 
[2014-11-22 08:07:16 - aaa] D:\EclipseAndroidWorkspace\Leaning_exercise\appcompat_v7\res\values-large-v14\themes_base.xml:22: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.Base.AppCompat.Light.DialogWhenLarge.Base'. 
[2014-11-22 08:07:16 - aaa] 

我在互聯網搜索了幾天,但沒有找到合適的答案,幫助我!非常感謝你!!!檢索項目的父項時出錯:找不到與給定名稱匹配的資源'Theme.Base.AppCompat.DialogWhenLarge.Base'

回答

8
  • 首先打開SDK管理器,並確保「Extras」下的「Android支持庫」安裝在那裏。

  • 從日食也是它的永久目錄的工作空間,刪除「appcompat_v7」裏面

  • 文件|導入|安卓(將現有Android代碼到工作區),然後點擊下一步

  • 選擇根目錄「 ADT_BUNDLE_INSTALLED_DIRECTORY \ SDK \演員\機器人\ SUPPORT \ V7" ,然後在項目檢查‘程序兼容性’,然後點擊‘完成’

  • 右鍵點擊你的項目,然後點擊‘屬性’,並執行以下操作:

    1. 從「Android」的部分中,確保目標的選擇有以下有有「庫」部分刪除舊的和瀏覽新的「appcompat_v7」

    2. 從「Java構建路徑」部分,進入「庫」選項卡,並刪除任何缺少的庫,如果你發現任何。

    3. 從 「Java構建路徑」 部分,轉到 「排序和導出」 選項卡,只強調以下並保持相同的順序:

      • PROJECTNAME/src目錄
      • PROJECTNAME/GEN
      • Android的私家藏書
      • Android的依賴條件
    4. 從「項目引用「部分,選中‘appcompat_v7’

然而,它是複雜的,但我有固定它像這樣..希望你太..好運

+0

感謝,它真的幫了我! – Frank 2014-12-08 15:06:50

+0

很高興聽到..希望標記爲正確的答案,以幫助社區..祝你好運 – msoliman 2014-12-08 19:24:12

+0

我遵循那裏指示,它的工作! – 2015-05-07 05:45:40

相關問題