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


[2014-11-22 07:46:34 - aa] D:EclipseAndroidWorkspaceLeaning_exerciseappcompat_v7resvalues-large-v14themes_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:EclipseAndroidWorkspaceLeaning_exerciseappcompat_v7resvalues-large-v14themes_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:EclipseAndroidWorkspaceLeaning_exerciseappcompat_v7resvalues-large-v14themes_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:EclipseAndroidWorkspaceLeaning_exerciseappcompat_v7resvalues-large-v14themes_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:EclipseAndroidWorkspaceLeaning_exerciseappcompat_v7resvalues-large-v14themes_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:EclipseAndroidWorkspaceLeaning_exerciseappcompat_v7resvalues-large-v14themes_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:EclipseAndroidWorkspaceLeaning_exerciseappcompat_v7resvalues-large-v14themes_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:EclipseAndroidWorkspaceLeaning_exerciseappcompat_v7resvalues-large-v14themes_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:EclipseAndroidWorkspaceLeaning_exerciseappcompat_v7resvalues-large-v14themes_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:EclipseAndroidWorkspaceLeaning_exerciseappcompat_v7resvalues-large-v14themes_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] 
我在网上搜索了几天,

但没有找到正确的答案,请帮助我!!谢谢!!!

  • 首先打开 SDK 管理器,并确保"附加"下的"Android 支持库"已安装在那里。

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

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

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

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

      从"Android"部分
    1. ,确保在下面有"库"部分选择目标,删除旧的并浏览新的"appcompat_v7"

    2. 从"Java 构建路径"部分,转到"库"选项卡并删除任何丢失的库(如果找到)。

    3. 从"Java 构建路径"部分,转到"订购和导出"选项卡,并仅突出显示以下内容并保持相同的顺序:

      • 项目名称/来源
      • 项目名称/代
      • 安卓私人图书馆
      • 安卓依赖关系
    4. 从"项目参考"部分,选中"appcompat_v7"

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

最新更新