问题描述
我将 Android Studio 更新到了 2.0 版.构建失败,而且构建时间也比 Android Studio 1.5 版要长.每次我运行我的应用程序时,我都会清理并重新加载项目,但这没有用.错误信息是:
I updated Android Studio to version 2.0. The build failed and also takes longer than Android Studio version 1.5 to build. Every time I run my application, I clean and reload the project, but it's no use. The error message is:
uildintermediatesesesources-anzhi-debug-stripped.ap_' 指定对于属性resourceFile"不存在.
uildintermediatesesesources-anzhi-debug-stripped.ap_' specified for property 'resourceFile' does not exist.
推荐答案
遇到同样的问题!所以即时运行与shrinkResources不兼容
Having same issue ! So instant run is not compatible with shrinkResources
1) 如果使用 Android Studio 2.2
1) if use Android Studio 2.2
shrinkResources 错误
buildTypes { release { signingConfig signingConfigs.release minifyEnabled false shrinkResources false zipAlignEnabled true debuggable false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } }
2) 如果使用 Android Studio 2.0
2) if use Android Studio 2.0
开启设置
open setting
现在运行您的项目