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 matches the given name 'Theme.AppCompat.Light.NoActionBar'.test/res/values/styles.xml:9: error: Error: No resource found that matches the given name:
attr 'colorAccent'.test/res/values/styles.xml:7: error: Error: No resource found that matches the given name:
attr 'colorPrimary'.test/res/values/styles.xml:8: error: Error: No resource found that matches the given name:attr 'colorPrimaryDark'.解决:
# emacs test/res/values/styles.xml
-<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
+<style name="AppTheme" parent="android:Theme.NoTitleBar">
-<item name="colorPrimary">@color/colorPrimary</item>
-<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
-<item name="colorAccent">@color/colorAccent</item>
</style>
Android报错:No resource found that matches the given name 'Theme.AppCompat.Light.NoActionBar'相关推荐
- [android] No resource found that matches the given name 'Theme.AppCompat.Light'
在整合android过程中导入别人的项目出现下面的错误: <style name="AppBaseTheme" parent="Theme.AppC ...
- 【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 ...
- No resource found that matches the given name 'Theme.AppCompat.Light 的完美解决方案
首先这个问题的产生是由于缺少Theme.AppCompat.Light这个主题产生的,而这个主题 的是存在于android\support\appcompat-v7支持库中的,注意不是jar包. No ...
- No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'
解决方法: styles.xml中<style name="AppBaseTheme" parent="Theme.AppCompat.Light"> ...
- No resource found that matches the given name 'Theme.AppCompat.Light'.
然后是所有的value文件夹下的styles.xml的 <style name="AppBaseTheme" parent="Theme.AppCompat.Lig ...
- 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 ...
- Android ionic resource style/Theme.AppCompat.Light.NoActionBar (aka x.x.x:style/Theme.AppCompa
error: resource style/Theme.AppCompat.Light.NoActionBar (aka 包名:style/Theme.AppCompat.Light.NoAction ...
- error: resource style/Theme.AppCompat.Light.NoActionBar
今天更新完公司最新项目代码后编译突然报错:error: resource style/Theme.AppCompat.Light.NoActionBar 网上苦苦找寻良策,答案大多是把v4包替换成v7 ...
- Android问题集锦之三十七:No resource found 'Theme.AppCompat.Light.DarkActionBar'
AS导入他人的工程会遇到这样那样的问题. 如果他们用的AS版本比较老,那么需要AS会自动下载相对应版本的gradle.这个我在前几篇文中有提过.不过最简单的版本就是直接将gradle的版本改成最新. ...
最新文章
- Linux 线程的创建与同步
- 五天面试 Google、Facebook、Airbnb 等硅谷五家顶级公司,我是如何都拿到 Offer 的
- 优秀!33岁博士,拟作为县长人选!
- 诗和远方:无题(四十六)
- Redis发布订阅和Stream
- ContextLoaderListener和Spring MVC中的DispatcherServlet加载内容的区别
- react中的核心概念
- FusionChartsFree参数说明
- Termux新/旧版下载地址及其附属包下载地址归总(附低版本aarch64安装包地址)
- Linux下使用FastDFS
- 企业无线接入平台好吗
- .net基础知识学习
- mac电脑怎么彻底关闭系统更新提示?
- html语言左对齐是什么,html - 如何左对齐标签?
- 【UEFI实战】Intel开源固件项目
- 6:把一个数组最开始的若干个元素搬到数组的末尾,我们称之为数组的旋转。 输入一个非递减排序的数组的一个旋转,输出旋转数组的最小元素。 例如数组{3,4,5,1,2}为{1,2,3,4,5}的一个旋转
- JavaWeb页面创作(一)——一个好看的登录界面
- 互联网晚报 | 7月17日 星期日 | iPhone 14量产在即;首款国产科学计算软件研发成功;上半年广东人均收入2.47万元...
- 低于90分的成绩 java_查询平均成绩低于60分的学生学号、姓名及成绩。
- PLC梯形图设计全自动洗衣机S7-1200博途以及PLC仿真实现之 4. 仿真演示过程