安卓AS打包项目出现错误-【Android】Error: Expected resource of type styleable [ResourceType]
2016-09-13 16:42
483 查看
Error: Expected resource of type styleable [ResourceType]
这个错误在编译运行时候并不会出现,但是当需要编译打包的时候,就会爆出这个异常。
点击异常信息会定位到该异常时,才会出现此异常,在调试的时候正常编译,但却在编译签名包的时候失败。
解决办法就是在报错的方法处,加上
这个错误在编译运行时候并不会出现,但是当需要编译打包的时候,就会爆出这个异常。
<ul class="pre-numbering" style="box-sizing: border-box; position: absolute; width: 50px; top: 0px; left: 0px; margin: 0px; padding: 6px 0px 40px; border-right-width: 1px; border-right-style: solid; border-right-color: rgb(221, 221, 221); list-style: none; text-align: right; background-color: rgb(238, 238, 238);"><li style="box-sizing: border-box; padding: 0px 5px;">1</li><li style="box-sizing: border-box; padding: 0px 5px;">2</li><li style="box-sizing: border-box; padding: 0px 5px;">3</li></ul>
点击异常信息会定位到该异常时,才会出现此异常,在调试的时候正常编译,但却在编译签名包的时候失败。
@SuppressWarnings("ResourceType"),这样即可过滤该警告,可以正常通过签名编译
<code class="language-Java hljs java has-numbering" style="display: block; padding: 0px; color: inherit; box-sizing: border-box; font-family: 'Source Code Pro', monospace;font-size:undefined; white-space: pre; border-radius: 0px; word-wrap: normal; background: transparent;"> </code>
相关文章推荐
- 运行时没问题 编译打包时出现 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打包错误Error:Error: Expected resource of type id [ResourceType]
- 【Android】Error: Expected resource of type styleable [ResourceType]
- 【Android】Error: Expected resource of type styleable [ResourceType]
- AS打包APK出现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]
- AndroidStudio-编译出错-Expected resource of type styleable [ResourceType]
- Error: Expected resource of type styleable [ResourceType]
- Error: Expected resource of type styleable [ResourceType]
- 【Android Studio】Error: Expected resource of type styleable [ResourceType]
- Android打包apk提示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-Expected resource of type styleable [ResourceType]
- Error:Error: Expected resource of type styleable [ResourceType]
- Error:Error: Expected resource of type id [ResourceType]打包apk是提示错误
- Error-Expected resource of type styleable [ResourceType]