error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCom
来源:互联网 发布:凸优化求解python库 编辑:程序博客网 时间:2024/05/16 19:00
错误显示如上图
鼠标放在红叉的位置则会显示和标题一样的代码,即错误ERROR。大致的意思是找不到能和“Theme.AppCompat.Light”相匹配的资源。也就是说缺少Theme.AppCompat.Light这个主题,而这个主题在appcompat-v7里面。所以解决方法是:先下载一个appcompat-v7库,再import。导入方式和导入一个项目是一样的,把appcompat-v7当成项目导入即可。
import以后,再把该库添加到出错的工程中。步骤:
(1)右键单击项目,选择Properties,在左边的窗体中选择Android;
(2)点击Library列表旁边的Add按钮,在弹出的窗体中双击appcompat-v7;
(3)点击OK,已将appcompat-v7添加到工程,就不会再有这个错误了。
0 0
- error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCom
- error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCom
- error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCom
- error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCom
- error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCom
- error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCom
- error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCom
- error: Error retrieving parent for item: No resource found that matches the given name 'Theme.App
- Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Lig
- Error retrieving parent for item: No resource found that matches the given name 'android:Theme....
- Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Lig
- eerror: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCo
- Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Lig
- Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Lig
- Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Lig
- 解决error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppC
- Error:(9) Error retrieving parent for item: No resource found that matches the given name 'Theme.App
- error: Error retrieving parent for item: No resource found that matches the given name 'Theme.Ap
- Adb connection Error:远程主机强迫关闭了一个现有的连接 处理
- BFC
- 软件可扩展性:来自星巴克的经验
- 树状数组-HDU-1166-敌兵布阵
- 类的声明、定义、初始化
- error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCom
- JavaSE入门学习37:Java集合框架之Map接口及其实现类HashMap和TreeMap
- 第11周阅读程序(1)
- 员工信息
- eclipse下如何打开ftl文件
- 设置label的行间距
- 模板的编译
- 美好的未来
- 史上最详细的Android Studio系列教程四--Gradle基础