1. 程式人生 > >androidstudio更新到2.2專案混淆編譯不通過

androidstudio更新到2.2專案混淆編譯不通過

更新Android Studio 2.2後:
1.出現問題:
Error:A problem was found with the configuration of task ‘:app:packageRelease’.

File ‘F:**********\app\build\intermediates\res\resources-release-stripped.ap_’ specified for property ‘resourceFile’ does not exist.

2.解決辦法

buildTypes {
debug {
signingConfig signingConfigs.debug
}
release {
minifyEnabled false
proguardFiles getDefaultProguardFile(‘proguard-
android.txt’), ‘proguard-rules.pro’
zipAlignEnabled true
shrinkResources false

//改為false 就解決了
signingConfig signingConfigs.release
}
}