Android studio 报错:Error:Error: Expected resource of type drawable [ResourceType]
来源:互联网 发布:动态称重算法 编辑:程序博客网 时间:2024/06/02 07:19
这样的写法报错,
// animCard.setBackgroundResource(R.anim.multi_finger_animation);
animCard.setImageResource(R.anim.multi_idcard_animation);
解决办法:
在build.gradle文件加入下面的代码
lintOptions{
disable "ResourceType"
}
0 0
- Android studio 报错:Error:Error: Expected resource of type drawable [ResourceType]
- Android Studio Error:Error: Expected resource of type id [ResourceType]
- 【Android Studio】Error: Expected resource of type styleable [ResourceType]
- Error:Error: Expected resource of type drawable [ResourceType]
- android Error:Error: Expected resource of type string [ResourceType]
- Android Studio之Error:(158) Error: Expected resource of type id [ResourceType]
- Android Studio打包错误Error:Error: Expected resource of type id [ResourceType]
- Android Studio打包错误Error:Error: Expected resource of type id [ResourceType]
- Error-Expected resource of type styleable [ResourceType]
- Error: Expected resource of type raw [ResourceType
- Error: Expected resource of type xxx [ResourceType]
- Error: Expected resource of type styleable [ResourceType]
- Error: Expected resource of type raw [ResourceType]
- 【Android】Error: Expected resource of type styleable [ResourceType]
- 【Android】Error: Expected resource of type styleable [ResourceType]
- 【Android】Error: Expected resource of type styleable [ResourceType]
- Android studio 2.3 打包版本,提示 Error: Expected resource of type styleable [ResourceType]
- 打包遇到的bug Error:Error: Expected resource of type drawable [ResourceType]
- 杂记
- linux 常用命令学习 笔记
- MVVM MVC MVP到底是什么
- Hibernate的集中查询方式 : hql查询,QBC查询和QBE查询
- 设计模式(三)——抽象工厂模式
- Android studio 报错:Error:Error: Expected resource of type drawable [ResourceType]
- DataBinding与MVVM(含代码)
- EJB小结
- Android代码的书写规范
- (HDU 5727)Necklace <二部图匹配,匈牙利算法> 多校训练1
- [bigdata-024] 在centos 6.5上手工安装mongodb 3.2.5
- Javascript与Jquery知识点
- 杰瑞·卡普兰:不要期望AlphaGo有人类意识,但需要它像人一样完成任务
- Android dialog 去除虚拟按键