AS打包经常会报这样的错误,特别是在使用SharedSDK时:
E:\AndroidStudioProjects\ManagerClient\app\src\main\java\cn\sharesdk\onekeyshare\theme\classic\EditPage.java
Error:Error: Expected resource of type id [ResourceType]
解决方案:
在AS的build.gradle中加入红色代码段就可以了,代表取消这些警告:
lintOptions {
disable "ResourceType"
}
例如:
android {
compileSdkVersion 23
buildToolsVersion "23.0.3"
......
lintOptions {
disable "ResourceType"
}
}