检索项目的父项时出错:找不到与给定名称匹配的资源' Theme.Base.AppCompat.DialogWhenLarge.Base'

时间:2014-11-22 00:15:40

标签: android

[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] 

我在互联网上搜了好几天了,但没找到合适的答案,帮帮我!!!非常感谢!!!

1 个答案:

答案 0 :(得分:8)

  • 首先打开SDK Manager并确保" Android支持库"在"额外"安装在那里。

  • 在您的工作空间内删除" appcompat_v7"从eclipse及其目录永久

  • 文件|导入| Android(现有Android代码进入工作区)然后点击下一步

  • 选择根目录为" ADT_BUNDLE_INSTALLED_DIRECTORY \ sdk \ extras \ android \ support \ v7"然后根据项目检查" appcompat"然后点击"完成"

  • 右键点击您的项目并点击"属性"并执行以下操作:

    1. 来自" Android"部分,确保目标在那里被选中,那里有"图书馆"部分删除旧的并浏览新的" appcompat_v7"

    2. 来自" Java Build Path"部分,去"图书馆"如果找到任何缺失的库,请选中并删除任何缺失的库。

    3. 来自" Java Build Path"部分,转到"订购和出口"选项卡并突出显示以下内容并保持相同的顺序:

      • PROJECTNAME / SRC
      • PROJECTNAME /根
      • Android私人图书馆
      • Android Dependecies
    4. 来自"项目参考"部分,检查" appcompat_v7"

然而它很复杂,但我已经修好了这个..希望你的...祝你好运