error: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.的解决方法
来源:互联网 发布:agularjs 数据校验 编辑:程序博客网 时间:2024/03/29 19:18
从eclipse导入Android项目时出现以下错误:
error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
且报错代码行为: <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">,此错误出现在res/values/styles.xml
解决步骤:
1、先找到project.properties文件,打开后找到最后一行查看project target是否太低,若太低则改成target=android-19及以上都可以。
(选中项目右键propertise/Android选择你想要的API,ok后project target会自动变成你选的API大小)
2、添加appcompat项目:File/Import/select/android/exsisting android code into workspase浏览sdk安装目录 <sdk>/extras/android/support/v7/appcompat/点击Finish引入项目,对于v7appcompat项目,你将看到一个标题为android-support-v7-appcompat的新项目.
3、选中项目右键选择propertise/Android/Library,点击add第二步导入的v7包。
4、window下clean选中的项目。
注意:
1,你所导入的项目要和Sdk在相同的安装盘。
2,导入项目的路径最好不要出现中文且各文件正确命名。
- error: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.的解决方法
- No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
- No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'
- no resource found that matches the given name 'theme.appcompat.light.darkactionbar'. android studio
- No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'
- 解决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
- Android Error : 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 'android:Theme.Material.Light.DarkActionBar'.
- 解决No resource found that matches the given name 'android:Theme.Material.Light.DarkActionBar'
- No resource found that matches the given name 'android:Theme.Material.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 的完美解决方案
- Spring框架学习(第一讲)
- Struts2 property标签
- C# global.asax的使用以及事件
- Keras快速上手
- MATLAB控制语句
- error: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.的解决方法
- map用法
- INI文件读写
- 101. Symmetric Tree#1(Done)
- [JZOJ 4886 ]字符串
- 排列(超级麻烦)+改进简单版
- java实现导出excel表到磁盘上---使用poi.jar包
- win10下vm12+centos7上网模式设置
- Linux 解压/压缩命令