Android打包错误Expected resource of type id...
来源:互联网 发布:smtp tls 端口 编辑:程序博客网 时间:2024/05/21 12:29
Android打包错误Expected resource of type id [ResourceType]
今天刚升级完Android Studio到3.0.1版本,装完之后,遇到一堆问题,改了一大堆问题,终于改完了,就想打包apk试试,没想到打包时报了如下错误:
Error Expected resource of type id [ResourceType]
点击到报错的地方,原来是依赖的一个开源库一个if判断处报错了,如下图:
但是点击进去之后看了一下也是返回的Int类型的值,我就郁闷了,为什么不能比较了?有哪位大神可以解释一下是为什么吗?
解决办法:
后来在网上搜了一下,只要在这个报错代码所在方法的头上加入如下代码即可:
@SuppressWarnings("ResourceType")
试了试,果然好使,但还是不知道为什么?
大神求解释!!!
阅读全文
1 0
- Android打包错误Expected resource of type id...
- android 打包吃出现Android - Expected Resource of type ID错误
- Android Studio打包错误Error:Error: Expected resource of type id [ResourceType]
- Android Studio打包错误Error:Error: Expected resource of type id [ResourceType]
- Error:Error: Expected resource of type id [ResourceType]打包apk是提示错误
- Error:Error: Expected resource of type id [ResourceType]打包apk是提示错误
- Expected resource of type id
- studio 打包 Expected resource of type id [ResourceType]
- Android打包apk提示Error: Expected resource of type id [ResourceType]解决办法
- 错误 Error: Expected resource of type id [ResourceTyp]
- androidstudio打包错误【Android】Error: Expected resource of type styleable [ResourceType]
- 安卓AS打包项目出现错误-【Android】Error: Expected resource of type styleable [ResourceType]
- Android Studio Error:Error: Expected resource of type id [ResourceType]
- Androidstudio下打包apk提示Error: Expected resource of type id [ResourceType]解决办法
- Androidstudio下打包apk提示Error: Expected resource of type id [ResourceType]解决办法
- 运行时没问题 编译打包时出现 Error: Expected resource of type styleable [ResourceType] 错误
- 关于打包签名时 出现错误---Error:Error: Expected resource of type styleable [ResourceType]
- Android Studio之Error:(158) Error: Expected resource of type id [ResourceType]
- Huffman codes
- node 设置最大监听数
- Rebuilding Roads (树形dp+背包)
- jQuery的on()方法的两种用法(委托给父元素进行事件监听代理)
- bzoj2438: [中山市选2011]杀人游戏(强联通)
- Android打包错误Expected resource of type id...
- activeMQ启动一闪而过
- 栈的操作
- Chrome插件控制视频播放速度(爱奇艺、优酷)
- HDFS中的file与block块之间的对应关系举例
- node 触发监听事件
- 波特率与晶振
- 大数据学习系列之一 ----- Hadoop环境搭建(单机)
- Dungeon Game