[Android开发] 错误No resource found that matches the given name 'Theme.AppCompat.Light'.
来源:互联网 发布:华大基因与阿里云 编辑:程序博客网 时间:2024/05/02 05:59
styles.xml中<style name="AppBaseTheme" parent="Theme.AppCompat.Light">提示如下错误,这是版本问题。
error: Error retrieving parent for item: No resource found that matches the given name
'Theme.AppCompat.Light'.
解决方法:
在Eclipse中打开任意一个.java文件,输入 android.R.style. 这时你会看到一个提示列表,仔细看看,再对比一下,看哪个与原有的最接近就选择哪个。用将下划线替换成"."就可了。
将
<style name="AppBaseTheme" parent="Theme.AppCompat.Light">
改为
<style name="AppBaseTheme" parent="android:Theme.Light">
<style name="AppBaseTheme" parent="Theme.AppCompat.Light.DarkActionBar">
改为
<style name="AppBaseTheme" parent="android:Theme.Holo.Light.DarkActionBar">
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'解决方法
- 错误:No resource found that matches the given name 'Theme.AppCompat.Light'解决方法
- 出现错误 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'
- 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 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】导入Android项目提示错误No resource found that matches the given name 'Theme.AppCompat.Light.DarkAct
- Android开发问题笔记(一):No resource found that matches the given name 'Theme.AppCompat.Light'.
- No resource found that matches the given name 'Theme.AppCompat.
- php 类似ceil 小数位进一
- 算法导论 顺序双向栈——两个栈共享同一存储空间
- iOS开发之 网页视图和时间选择器
- confirm中的“取消"问题
- django 1.8 官方文档翻译:5-1-4 内建的Widget
- [Android开发] 错误No resource found that matches the given name 'Theme.AppCompat.Light'.
- Java客户端给服务器发送文件
- win7,win8,win10下配置 Java 环境变量(系统变量)
- Android性能优化总结
- Android漂亮的UI库集合
- NSAssert调试程序
- iOS--常用的宏
- 页面Loading js插件
- 让apache支持https的设置步骤