我将 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:
uildintermediates es esources-anzhi-debug-stripped.ap_' 指定对于属性resourceFile"不存在.
uildintermediates es esources-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
现在运行您的项目
这篇关于为属性“resourceFile"指定的 uildintermediates es esources-anzhi-debug-stripped.ap_' 不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!