Android Studio打包错误Error:Error: Expected resource of type id [ResourceType]
2017-03-01 12:58
543 查看
AS打包经常会报这样的错误,特别是在使用SharedSDK时:
这是在有代码在设置资源ID时,直接写入整型数据而有的警告,eclipse中没事,但是AS打包不让通过
解决方案:
在AS的build.gradle中加入红色代码段就可以了,代表取消这些警告:
例如:
E:\AndroidStudioProjects\ManagerClient\app\src\main\java\cn\sharesdk\onekeyshare\theme\classic\EditPage.java Error:Error: Expected resource of type id [ResourceType]
这是在有代码在设置资源ID时,直接写入整型数据而有的警告,eclipse中没事,但是AS打包不让通过
解决方案:
在AS的build.gradle中加入红色代码段就可以了,代表取消这些警告:
lintOptions { disable "ResourceType" }
例如:
android { compileSdkVersion 23 buildToolsVersion "23.0.3" ...... lintOptions { disable "ResourceType" } }
相关文章推荐
- Error:Error: Expected resource of type id [ResourceType]打包apk是提示错误
- Android Studio打包错误Error:Error: Expected resource of type id [ResourceType]
- Error:Error: Expected resource of type id [ResourceType]打包apk是提示错误
- androidstudio打包错误【Android】Error: Expected resource of type styleable [ResourceType]
- Android studio 2.3 打包版本,提示 Error: Expected resource of type styleable [ResourceType]
- Androidstudio下打包apk提示Error: Expected resource of type id [ResourceType]解决办法
- 运行时没问题 编译打包时出现 Error: Expected resource of type styleable [ResourceType] 错误
- 安卓AS打包项目出现错误-【Android】Error: Expected resource of type styleable [ResourceType]
- Androidstudio下打包apk提示Error: Expected resource of type id [ResourceType]解决办法
- Android打包apk提示Error: Expected resource of type id [ResourceType]解决办法
- 关于打包签名时 出现错误---Error:Error: Expected resource of type styleable [ResourceType]
- Android Studio Error:Error: Expected resource of type id [ResourceType]
- Android Studio之Error:(158) Error: Expected resource of type id [ResourceType]
- 错误 Error: Expected resource of type id [ResourceTyp]
- studio 打包 Expected resource of type id [ResourceType]
- 【Android Studio】Error: Expected resource of type styleable [ResourceType]
- 打包遇到的bug Error:Error: Expected resource of type drawable [ResourceType]
- Androidstudio下Generate signed apk提示Error: Expected resource of type id [ResourceType]解决办法
- Error: Expected resource of type id [ResourceType]的解决办法
- Android打包错误Expected resource of type id...