您的位置:首页 > 运维架构

AS Error:File xxx specified for property 'resourceFile' does not exist

2016-09-23 14:58 399 查看
升级Android Studio 2.2之后,编译过程出现问题:

Error:A problem was found with the configuration of task ':app:packageDebug'.
> File xxx specified for property 'resourceFile' does not exist.


解决方法:将shrinkResource设置为false

buildTypes {
release {
// 不显示Log
buildConfigField "boolean", "LOG_DEBUG", "false"
//混淆
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
//Zip代码压缩优化
zipAlignEnabled true
//移除无用资源
shrinkResources false
signingConfig signingConfigs.release
}
debug {
//Zip代码压缩优化
zipAlignEnabled true
//移除无用资源
shrinkResources false
signingConfig signingConfigs.release
minifyEnabled false
}
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: