No resource identifier found for attribute 'showAsAction' in package 'android'
运行一个项目时在一个menu.xml文件item属性android:showAsAction 报错 No resource identifier found for attribute 'showAsAction' in package 'android'
google了下,老外说是版本问题,showAsAction was added in API level 11要将API提升到11,添加 "android-support-v7-appcompat.jar" 到Android库( Private Libraries)
android:showAsAction = "never"
当你的应用程序目标设为蜂巢平台时,你可以利用Action Bar部件提供的全部功能,将你的选项菜单项放在Action Bar的右上角,对用户来说使用更方便,控制该行为的主菜单项属性是android:showAsAction。 这个属性可接受的值有: 1、always:这个值会使菜单项一直显示在Action Bar上。 2、ifRoom:如果有足够的空间,这个值会使菜单项显示在Action Bar上。 3、never:这个值使菜单项永远都不出现在Action Bar上。 4、withText:这个值使菜单项和它的图标,菜单文本一起显示。
不过这里没有用到这高版本,此处删除这个属性就OK了。
No resource identifier found for attribute 'showAsAction' in package 'android'相关推荐
- error: No resource identifier found for attribute 'showAsAction' in package 'com.ymeng.项目名字'
最近做点东西报错原因写在标题上了,这里在截取一个图片 刚开始感觉很奇怪呢,没有什么地方不对呢,后台查阅了下资料 是版本问题, 处理方法: 把app:showAsAction="never&q ...
- Android调试错误-No resource identifier found for attribute 'showAsAction'
今天在研究有米广告技术时,第一次编译他们提供的Android示例工程,结果出现如下错误: [2014-11-29 11:28:25 - com.youmi.android.offerdemo.Youm ...
- apktool重新打包,error:No resource identifier found for attribute ‘compileSdkVersionCodename‘ in package
报错日志:AndroidManifes.xml :1 error:No resource identifier found for attribute 'compileSdkVersionCodena ...
- No resource identifier found for attribute 'headerLayout' in package错误解决方法
我在使用NavigationView这个控件的时候出现了以下的错误: Error:(2) No resource identifier found for attribute 'headerLayou ...
- error: No resource identifier found for attribute ‘backIcon’ in package
异常提示: 今天我新创建了一个自定义控件,我为他定义了一个属性为backIcon,但是当我在xml设置这个属性之后,xml布局界面提示以下错误: 错误原因: 在网上查找错误原因的时候,有文章说这是因为 ...
- `Error:(11) No resource identifier found for attribute 'srcCompat' in package 'com.codifythings.ligh
1. activity_main.xml文件xmlns:app="http://schemas.Android.c om/apk/res-auto"改成xmlns:app=&quo ...
- Error:(108) No resource identifier found for attribute #39;style#39; in package #39;android#39;
Error:(108) No resource identifier found for attribute 'style' in package 'android' 解决方案: 这是错误的写法: a ...
- Error:No resource identifier found for attribute 'appComponentFactory' in packag
问题 十一国假回来后出现这样,无法编译: 解决思路,怀疑是否是第三方类库导致 排查:看见好多个依赖是最新的,比如'com.github.chrisbanes:PhotoView:latest.rele ...
- 报错 No resource identifier found for attribute '****' in package '***.***'解决办法
这个错误是在布局文件中,提示控件没有这个属性,前面会有提示在哪一个文件哪一行,如下如所示: 从上图可以看出报错是因为这个控件中没有 "emptyErrorString" " ...
最新文章
- java tessbaseapi,T+开发者社区
- linux下启动oracle服务
- python if else 必须同时出现吗,Python:Inline if语句else什么也不做
- windows中运行qt5构建的程序提示 无法启动此程序,因为计算机中丢失qt5Cored.dll 解决方法
- Linux常用命令(持续更新)
- 【转】robot framework + python实现http接口自动化测试框架
- install par
- java 之动态生成类
- 蓝牙耳机什么牌子好?性价比最高的蓝牙耳机排行榜
- STM32F4 ADC+DMA单通道采集
- 什么叫组网_小米科普:一文看懂路由器上的 Mesh 组网是什么
- Redis高可用哨兵Sentinel
- 怎么把计算机硬盘里面的软件放到桌面,怎样将应用放到桌面上
- 已经提了离职,还有一周就走,公司突然把我移出企业微信,没法考勤打卡, 还要继续上班吗?...
- 【web前端特效源码】使用HTML5+CSS3+JavaScript制作一个电风扇动画效果~适合初学者~超简单~ |前端开发|IT软件
- 英语日常口语对话(3)
- 以非耍流氓的方式讨论C++中的面向对象编程
- 【数据结构课设】扫雷 (java实现)
- python虚拟串口_Linux下的虚拟串口对(可用于在本机上模拟串口进行调试)
- 主成分分析,PCA(Principle Component Analysis)详解 ,结合matlab