检索父项时出错:找不到与给定名称'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: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]
我在互联网上搜索了几天,但没有找到正确的答案,帮帮我!!!非常感谢!!!
I searched the Internet for servral days,but found no proper answer, help me!!! Thank you very much!!!
-
首先打开SDK Manager,并确保在其中安装了其他"下的"Android支持库".
-
First Open SDK Manager and make sure that "Android Support Library" under "Extras" is installed there.
在工作空间内,从eclipse中删除"appcompat_v7",并从其目录中永久删除
inside your work space remove "appcompat_v7" from eclipse and also its directory permanently
文件|导入| Android(将现有的Android代码导入工作区),然后单击下一步"
File|Import|Android(Existing Android Code into Workspace) then Hit Next
选择根目录为"ADT_BUNDLE_INSTALLED_DIRECTORY \ sdk \ extras \ android \ support \ v7",然后在项目下检查"appcompat",然后单击完成"
Choose Root directory as "ADT_BUNDLE_INSTALLED_DIRECTORY\sdk\extras\android\support\v7" then under projects check "appcompat" then hit "Finish"
右键单击您的项目,然后单击属性",然后执行以下操作:
Right Click on your project and hit "properties" and do the following:
-
从"Android"部分中,确保选择了目标,然后在下面的库"部分中删除了旧的库,并浏览了新的"appcompat_v7"
from "Android" section, make sure target is selected there below there there is "library" section remove the old one and browse for the new one "appcompat_v7"
从"Java构建路径"部分,转到库"选项卡,如果找到任何缺失的库,则将其删除.
from "Java Build Path" section, go to "libraries" tab and remove any missing library if you found any.
从"Java构建路径"部分,转到订单和导出"标签,仅突出显示以下内容并保持相同的顺序:
from "Java Build Path" section, go to "Order and Export" tab and highlight only for the following and keep the same order:
- projectName/src
- projectName/gen
- Android私有库
- Android Dependecies
在项目参考"部分中,选中"appcompat_v7"
from "Project References" section, check "appcompat_v7"
-
但是它很复杂,但我已将其固定为..希望您也..祝您好运
However it is complicated but I have fixed it like this .. hope yours too .. good luck
-