Android Error : No resource found that matches the given name 'Theme.AppCompat.Light'.
来源:互联网 发布:网咖身份证件软件 编辑:程序博客网 时间:2024/04/27 16:10
在eclipse中创建android项目时如图:
如果Minimum Required SDK选择版本过低就会出现下列问题:
[2016-06-30 00:04:47 - test] D:\Documents\Android_Workspace\test\res\values-v11\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name ‘Theme.AppCompat.Light’.
[2016-06-30 00:04:47 - test]
[2016-06-30 00:04:47 - test] D:\Documents\Android_Workspace\test\res\values-v14\styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name ‘Theme.AppCompat.Light.DarkActionBar’.
[2016-06-30 00:04:47 - test]
暂时解决办法:将Minimum Required SDK版本调至Android 4.0(API14)以上。
原因:简单来说就是新的eclipse默认模版主题UI需要使用比较高版本api,如果需要支持低版本,需要导入appCompact库来支持,网上一般给出的解法:
1、File->Import (android-sdk\extras\android\support\v7). Choose “appcompat”
2、Project-> properties->Android. In the section library “Add” and choose “appCompat”
- Android Error : No resource found that matches the given name 'Theme.AppCompat.Light'.
- 解决No resource found that matches the given name :Theme.AppCompat.Light error: Error retrieving paren
- error:No resource found that matches the given name 'Theme.AppCompat.Light'
- Error:No resource found that matches the given name 'Theme.AppCompat.Light'.解决方案
- Error No resource found that matches the given name 'Theme.AppCompat.Light
- error: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.的解决方法
- [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] 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.
- ios开发常用的数据结构知识点
- WinForm窗体背景渐变色的设置
- 4-9 统计个位数字 (15分)
- hello! Myblog
- APP版本兼容,伤不起!
- Android Error : No resource found that matches the given name 'Theme.AppCompat.Light'.
- 支持向量机通俗导论(理解SVM的三层境界)
- this,super&final关键字说明
- bzoj4567【SCOI2016】背单词
- 一个小白从零基础自学Android编程笔记之如何切换另一个活动(窗口)
- Codeforces Round #359 (Div. 2)D. Kay and Snowflake
- C#中char类型与string类型的相互转换
- 使用Volley StringRequest返回String 编码格式错误乱码问题解决
- 前段时间发现的关于数据库原理的好文章(只有链接)