关于安卓出现No resource found that matches the given name 'Theme.AppCompat.Light 的完美解决方案
来源:互联网 发布:怎样下载flash软件 编辑:程序博客网 时间:2024/04/19 15:57
描述
这个现象一般出现在更换电脑后新导入一个安卓项目时发生,当然了其他时候也可能发生。 比如更新ADT至22.6.0版本之后,创建新的安装项目,会出现appcompat_v7的内容。并且是创建一个新的内容就会出现。这到底是怎么回事呢。
其实质原因是appcompat_v7是Google自己的一个兼容包,就是一个支持库,能让2.1以上全使用上4.0版本的界面。
比如新安装的eclipse我导入以前的一个项目,之后出现了这个状况如图:
错误提示为:解决方案
出现了这个问题后我就网上找答案,有很多解决方法,有的说 从网上下载appcompat-v7工程库也可以直接在 sdk路径\extras\android\support\v7中找到然后添加到eclipse中以库的形式存在。我这样做了,但是仍然出现了问题如下
之后我并没有深究这种错误是什么原因,当知道问题的实质(即其实质原因是appcompat_v7是Google自己的一个兼容包,就是一个支持库,能让2.1以上全使用上4.0版本的界面。 更新ADT至22.6.0版本之后,创建新的安装项目,会出现appcompat_v7的内容。并且是创建一个新的内容就会出现。)后,我想到了,既然我直接导入支持宝会产生错误,那么我就换一种方式让其自己生成。接着我删除了自己导入的包,并且新建了一个安卓工程项目,其是最小支持android API 8.0 ,最大支持最新版的安卓API,然后eclipse会自己生成一个支持包。这下问题就完美解决了。如下:- 从以上现象也可以看出在平时应用上这个现象一般是不会出现的,只是在新的环境才会缺少这个支持包。否则会自己生成。
0 0
- 关于安卓出现No resource found that matches the given name 'Theme.AppCompat.Light 的完美解决方案
- No resource found that matches the given name 'Theme.AppCompat.Light 的完美解决方案
- No resource found that matches the given name 'Theme.AppCompat.Light 的完美解决方案
- No resource found that matches the given name 'Theme.AppCompat.Light 的完美解决方案
- No resource found that matches the given name 'Theme.AppCompat.Light 的完美解决方案
- No resource found that matches the given name 'Theme.AppCompat.Light 的完美解决方案
- No resource found that matches the given name 'Theme.AppCompat.Light 的完美解决方案
- No resource found that matches the given name 'Theme.AppCompat.Light 的完美解决方案
- No resource found that matches the given name 'Theme.AppCompat.Light 的完美解决方案
- No resource found that matches the given name 'Theme.AppCompat.Light 的完美解决方案
- No resource found that matches the given name 'Theme.AppCompat.Light 的完美解决方案
- No resource found that matches the given name 'Theme.AppCompat.Light 的完美解决方案
- No resource found that matches the given name 'Theme.AppCompat.Light 的完美解决方案
- 报错“No resource found that matches the given name 'Theme.AppCompat.Light”-完美解决方案
- No resource found that matches the given name 'Theme.AppCompat.Light 的解决方案
- 关于 No resource found that matches the given name 'Theme.AppCompat.Light'问题的解决
- Error:No resource found that matches the given name 'Theme.AppCompat.Light'.解决方案
- No resource found that matches the given name 'Theme.AppCompat.Light'.解决方案
- 滴滴出行高效开发保障源动力解析
- 学习网站
- bp神经网络原理及其c++实现
- ubuntu 12.04安装php的权限配制
- 深入理解 KVC\KVO 实现机制 — KVO
- 关于安卓出现No resource found that matches the given name 'Theme.AppCompat.Light 的完美解决方案
- ump 中使用ConnectAsync连接服务器出现AccessDenied
- pl/sql Developer安装与配置连接
- iOS项目如何新建预编译pch文件
- java中的注解
- SpringMVC4+Hibernate4 问题汇总
- Xcode 真机调试中"There was an internal API error"错误解决方法
- Android SharedPreferences保存/获取简单本地数据
- max_heap_table_size 和 tmp_table_size