問(wèn)題描述
我將 Android Studio 更新到了 2.0 版.構(gòu)建失敗,而且構(gòu)建時(shí)間也比 Android Studio 1.5 版要長(zhǎng).每次我運(yùn)行我的應(yīng)用程序時(shí),我都會(huì)清理并重新加載項(xiàng)目,但這沒(méi)有用.錯(cuò)誤信息是:
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_' 指定對(duì)于屬性resourceFile"不存在.
uildintermediates es esources-anzhi-debug-stripped.ap_' specified for property 'resourceFile' does not exist.
推薦答案
遇到同樣的問(wèn)題!所以即時(shí)運(yùn)行與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 錯(cuò)誤
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
開(kāi)啟設(shè)置
open setting
現(xiàn)在運(yùn)行您的項(xiàng)目
這篇關(guān)于為屬性“resourceFile"指定的 uildintermediates es esources-anzhi-debug-stripped.ap_' 不存在的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!