No resource found that matches the given name 'Theme.AppCompat.Light'
来源:互联网 发布:java增删改查代码思路 编辑:程序博客网 时间:2024/04/30 10:54
在整合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文件夹.如下图所示:
2.
Project-> properties->Android. In the section library "Add" and choose "appCompat"
此时问题即可解决,能正确运行.
问什么会出现这个问题呢?这是我整合“随时拍”项目其他人的代码,他的版本比我的低,新的eclipse默认模版主题UI需要使用比较高版本api,如果需要支持低版本,需要导入appCompact库来支持.希望文章能解决大家的bug
转自 http://www.tuicool.com/articles/YreyEn3
0 0
- 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'解决方法
- [android] 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 的完美解决方案
- 关于 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 的完美解决方案
- POJ1936 All in All 字符串水题
- 自定义可点击的ImageSpan并在TextView中内置“View“
- Android 数字签名学习笔记
- GDB使用详解
- Android之自定义控件
- No resource found that matches the given name 'Theme.AppCompat.Light'
- Java Netty4 基于对象的通信 二
- 文件系统与存储:fat32的DBR分析
- 程序员进阶之路(C、C++、Java、Python经典书籍及学习顺序)
- C/C++中extern关键字详解
- js中SetInterval与setTimeout用法
- libnids的哈希及查找
- javac编译出现“找不到符号”和"软件包不存在"的解决
- Android Gesture Detector