2014-11-22 30 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

相关问题