解决方法:

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">

No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'相关推荐

  1. [android] No resource found that matches the given name 'Theme.AppCompat.Light'

    在整合android过程中导入别人的项目出现下面的错误:         <style name="AppBaseTheme" parent="Theme.AppC ...

  2. Android报错:No resource found that matches the given name 'Theme.AppCompat.Light.NoActionBar'

    报错: test/res/values/styles.xml:4: error: Error retrieving parent for item: No resource found that ma ...

  3. No resource found that matches the given name 'Theme.AppCompat.Light 的完美解决方案

    首先这个问题的产生是由于缺少Theme.AppCompat.Light这个主题产生的,而这个主题 的是存在于android\support\appcompat-v7支持库中的,注意不是jar包. No ...

  4. No resource found that matches the given name 'Theme.AppCompat.Light'.

    然后是所有的value文件夹下的styles.xml的 <style name="AppBaseTheme" parent="Theme.AppCompat.Lig ...

  5. Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Lig

    Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Lig ...

  6. Android问题集锦之三十七:No resource found 'Theme.AppCompat.Light.DarkActionBar'

    AS导入他人的工程会遇到这样那样的问题. 如果他们用的AS版本比较老,那么需要AS会自动下载相对应版本的gradle.这个我在前几篇文中有提过.不过最简单的版本就是直接将gradle的版本改成最新. ...

  7. 【Android】No resource found that matches the given name 'Theme.Sherlock.Light.NoActionBar'

    被这个问题困扰了好久-- 错误如下: error: Error retrieving parent for item: No resource found that matches the given ...

  8. 报错error: resource style/Theme.AppCompat.Light.DarkActionBar (aka com.xxx.xxx:style/Theme)not found.

    报错内容如下: error: resource style/Theme.AppCompat.Light.DarkActionBar (aka com.xxx.xxx:style/Theme.AppCo ...

  9. error: resource style/Theme.AppCompat.Light.NoActionBar

    今天更新完公司最新项目代码后编译突然报错:error: resource style/Theme.AppCompat.Light.NoActionBar 网上苦苦找寻良策,答案大多是把v4包替换成v7 ...

最新文章

  1. 赛门铁克开启“容灾即服务”时代
  2. Hinton的胶囊网络不太行?CVPR Oral论文:不比卷积网络更「强」
  3. hdu4909 状态压缩(偶数字符子串)
  4. 动态代理——事务处理
  5. 第二次做HDOJ 1051
  6. 一文读懂:从 Python 打包到 CLI 工具
  7. Ubuntu中安装配置和卸载FTP(转)
  8. centos中nodejs npm环境完全删除
  9. 听力技巧-真题代练及填空题
  10. linux重启gpu_远程配置Ubuntu深度学习服务器GPU驱动+Docker+CUDA多个版本
  11. pd虚拟机 17.1.2 Intel核心Mac专用版
  12. ThinkPHP学生管理系统
  13. VM10虚拟机安装图解
  14. C#数据库编程实战经典
  15. 初识flowable工作流-实现简单请假流程SpringBoot+VUE
  16. SDUT F - 判断回文串
  17. Nature子刊:AI技术从零开始设计具有生物活性的蛋白质
  18. Apache Camel 了解一下?
  19. opencv blur函数——均值滤波
  20. Sheldon Numbers 暴力枚举

热门文章

  1. 面临“反对沉没成本”效应,海尔、格力、海信、美的等家电厂商的智能音箱还有必要做吗?
  2. TPA测试项目管理系统-测试用例管理
  3. c语言打印n个连续的字符tzz,C/C++编程笔记:C语言实现连连看游戏,小白练手项目(源码分享)...
  4. Guass列选主元消去法和三角分解法
  5. ExcludeClipRect和无闪烁图像
  6. 51单片机实战教程之C语言基础(五 C语言函数及其定义)
  7. AUTOSAR MCAL解析: ADC
  8. 计算机打印驱动怎么安装,打印机驱动怎么安装,详细教您打印机驱动怎么安装...
  9. python实现一元三次方程求根-二分法
  10. python手机号码标记_python 判断号码是否可用(号码过滤)