[android] No resource found that matches the given name 'Theme.AppCompat.Light'
来源:互联网 发布:tvb星河软件下载 编辑:程序博客网 时间:2024/04/20 00:26
在整合android过程中导入别人的项目出现下面的错误:
<style name="AppBaseTheme" parent="Theme.AppCompat.Light">
error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
通过stackoverflow查到其解决方法,如下:
1.File->Import (android-sdk\extras\android\support\v7). Choose "appcompat"
在"文件"中导入sdk路径extras\android\support\v7中的appcompat文件夹.如下图所示:
<style name="AppBaseTheme" parent="Theme.AppCompat.Light">
error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
通过stackoverflow查到其解决方法,如下:
1.File->Import (android-sdk\extras\android\support\v7). Choose "appcompat"
在"文件"中导入sdk路径extras\android\support\v7中的appcompat文件夹.如下图所示:
2.Project-> properties->Android. In the section library "Add" and choose "appCompat"
此时问题即可解决,能正确运行.
问什么会出现这个问题呢?这是我整合“随时拍”项目其他人的代码,他的版本比我的低,新的eclipse默认模版主题UI需要使用比较高版本api,如果需要支持低版本,需要导入appCompact库来支持.希望文章能解决大家的bug.
(By:Eastmount 2014-12-3 晚上10点 http://blog.csdn.net/eastmount/)
参考资料:
stackoverflow答案
http://blog.csdn.net/huiguixian/article/details/41210895
问什么会出现这个问题呢?这是我整合“随时拍”项目其他人的代码,他的版本比我的低,新的eclipse默认模版主题UI需要使用比较高版本api,如果需要支持低版本,需要导入appCompact库来支持.希望文章能解决大家的bug.
(By:Eastmount 2014-12-3 晚上10点 http://blog.csdn.net/eastmount/)
参考资料:
stackoverflow答案
http://blog.csdn.net/huiguixian/article/details/41210895
0 0
- [android] No resource found that matches the given name 'Theme.AppCompat.Light'
- [android] No resource found that matches the given name 'Theme.AppCompat.Light'
- no resource found that matches the given name 'theme.appcompat.light.darkactionbar'. android studio
- Android Studio 报No resource found that matches the given name '@style/Theme.AppCompat.Light'.
- [Android开发] 错误No resource found that matches the given name 'Theme.AppCompat.Light'.
- [android] No resource found that matches the given name 'Theme.AppCompat.Light'
- 新建Android项目报错"No resource found that matches the given name 'Theme.AppCompat.Light'."
- [android] No resource found that matches the given name 'Theme.AppCompat.Light'
- [android] No resource found that matches the given name 'Theme.AppCompat.Light'
- Android Error : No resource found that matches the given name 'Theme.AppCompat.Light'.
- [android] No resource found that matches the given name 'Theme.AppCompat.Light'
- android开发中遇到No resource found that matches the given name 'Theme.AppCompat.Light'.
- No resource found that matches the given name 'Theme.AppCompat.
- No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
- 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 ‘
- 人们为什么会患癫痫疾病
- 阵挛性发作是什么
- POJ 1979 Red and Black(搜索)
- 药物治疗癫痫病误区有哪些?_寻医问药网癫痫病频道
- eag2w3pm
- [android] No resource found that matches the given name 'Theme.AppCompat.Light'
- 癫痫病能治愈好吗_生活健康
- oj2bezdy
- 0yprasf4
- 引起癫痫病根本原因有什么_8
- 经济环境
- 老年人癫痫病怎么患上的?
- 箭扣客花
- 如何治疗智障癫痫患者-今视网癫痫专题