問題描述
我將 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模板網!