AS打包APK出现Expected resource of type styleable [ResourceType]
2017-03-23 17:58
459 查看
异常信息:
编译时: Expected resource of type styleable [ResourceType]
异常解决:
在使用TypedArray的语句,方法上或者类上加上注解@SuppressWarnings("ResourceType")
关于解决方法:
SuppressWarning("XXX")方法的作用是告诉编译器,一个让类型的警告不再显示.参数"XXX",就是指定某种类型的警告.就像我们的使用SuppressWarning("ResourceType"),就是说不要再报关于ResourceType类型的警告错误了.
原文链接:http://fx114.net/qa-145-163596.aspx
编译时: Expected resource of type styleable [ResourceType]
异常解决:
在使用TypedArray的语句,方法上或者类上加上注解@SuppressWarnings("ResourceType")
关于解决方法:
SuppressWarning("XXX")方法的作用是告诉编译器,一个让类型的警告不再显示.参数"XXX",就是指定某种类型的警告.就像我们的使用SuppressWarning("ResourceType"),就是说不要再报关于ResourceType类型的警告错误了.
原文链接:http://fx114.net/qa-145-163596.aspx
相关文章推荐
- 运行时没问题 编译打包时出现 Error: Expected resource of type styleable [ResourceType] 错误
- 安卓AS打包项目出现错误-【Android】Error: Expected resource of type styleable [ResourceType]
- 关于打包签名时 出现错误---Error:Error: Expected resource of type styleable [ResourceType]
- androidstudio打包错误【Android】Error: Expected resource of type styleable [ResourceType]
- Android studio 2.3 打包版本,提示 Error: Expected resource of type styleable [ResourceType]
- Error: Expected resource of type styleable [ResourceType]
- AndroidStudio--编译出错-Expected resource of type styleable [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]
- Error: Expected resource of type styleable [ResourceType]
- Androidstudio下打包apk提示Error: Expected resource of type id [ResourceType]解决办法
- Error:Error: Expected resource of type id [ResourceType]打包apk是提示错误
- Android打包apk提示Error: Expected resource of type id [ResourceType]解决办法
- Androidstudio下打包apk提示Error: Expected resource of type id [ResourceType]解决办法
- Error-Expected resource of type styleable [ResourceType]
- AndroidStudio-编译出错-Expected resource of type styleable [ResourceType]
- Error:Error: Expected resource of type styleable [ResourceType]
- 【Android Studio】Error: Expected resource of type styleable [ResourceType]
- Error:Error: Expected resource of type id [ResourceType]打包apk是提示错误