Error:A problem was found with the configuration of task ':app:packageDebug' 问题解决
2017-12-21 11:26
591 查看
以前的老项目,导入到AndroidStudio 2.2.2时,报错:
[html] view plain copy print?Error:A problem was found with the configuration of task ’:app:packageDebug’.
> File ‘E:\AndroidStudio\work\AUWoQu\YingYongShiChang\app\build\intermediates\res\resources-debug-stripped.ap_’ specified for property ‘resourceFile’ does not exist.
解决办法 :
打开app的build.gradle
将shrinkResources 设置为false
[html] view plain copy print?buildTypes {
release {
minifyEnabled true
shrinkResources false
proguardFiles getDefaultProguardFile(‘proguard-android.txt’), ‘proguard-rules.pro’
}
debug {
//开启代码混淆
minifyEnabled false
// 移除无用的resource文件
shrinkResources false
proguardFiles getDefaultProguardFile(‘proguard-android.txt’), ‘proguard-rules.pro’
}
}
转自:http://blog.csdn.net/liu12921/article/details/53637174
[html] view plain copy print?Error:A problem was found with the configuration of task ’:app:packageDebug’.
> File ‘E:\AndroidStudio\work\AUWoQu\YingYongShiChang\app\build\intermediates\res\resources-debug-stripped.ap_’ specified for property ‘resourceFile’ does not exist.
Error:A problem was found with the configuration of task ':app:packageDebug'. > File 'E:\AndroidStudio\work\AUWoQu\YingYongShiChang\app\build\intermediates\res\resources-debug-stripped.ap_' specified for property 'resourceFile' does not exist.
解决办法 :
打开app的build.gradle
将shrinkResources 设置为false
[html] view plain copy print?buildTypes {
release {
minifyEnabled true
shrinkResources false
proguardFiles getDefaultProguardFile(‘proguard-android.txt’), ‘proguard-rules.pro’
}
debug {
//开启代码混淆
minifyEnabled false
// 移除无用的resource文件
shrinkResources false
proguardFiles getDefaultProguardFile(‘proguard-android.txt’), ‘proguard-rules.pro’
}
}
buildTypes { release { minifyEnabled true shrinkResources false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } debug { //开启代码混淆 minifyEnabled false // 移除无用的resource文件 shrinkResources false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } }
转自:http://blog.csdn.net/liu12921/article/details/53637174
相关文章推荐
- Error:A problem was found with the configuration of task ':app:packageDebug' 问题解决
- Error:A problem was found with the configuration of task ':app:packageDebug' 问题解决
- Error:A problem was found with the configuration of task ':app:packageDebug'. > File 'F:\androidstud
- android studio异常Error:A problem was found with the configuration of task ':app:zipalignDebug'.
- A problem was found with the configuration of task ':app:packageDebug'
- Error:A problem was found with the configuration of task ':app:packageRelease'.
- Error:A problem was found with the configuration of task ':app:packageRelease'. > File 'F:\AndroidSt
- Error:A problem was found with the configuration of task ':app:packageBAIDURelease'.
- Error:A problem was found with the configuration of task ':app:packageDebug'
- 打包出现这个错误Error:A problem was found with the configuration of task ':app:packageRelease'.
- Error:A problem was found with the configuration of task ':app:packageAliRelease'.
- 打包出现这个错误Error:A problem was found with the configuration of task ':app:packageRelease'.
- Android A problem was found with the configuration of task ':app:packageRelease'
- A problem was found with the configuration of task ':app:packageDebug'
- 解决yum升级的问题“There was a problem importing one of the Python modules”
- 完美解决Error:Execution failed for task ':APP:transformClassesWithDexForDebug'...问题
- 完美解决Error:Execution failed for task ':APP:transformClassesWithDexForDebug'...问题
- windows 下git commit问题("error: There was a problem with the editor 'vi'")
- ios 提交 App Store Error Problem with Icon.png (Icon specified in the Info.plist not found under the t
- 完美解决Error:Execution failed for task ':APP:transformClassesWithDexForDebug'...问题