为属性“resourceFile"指定的 uildintermediates es esources-anzhi-debug-stripped.ap_' 不存在 [英] uildintermediates es esources-anzhi-debug-stripped.ap_' specified for property 'resourceFile' does not exist

查看:18
本文介绍了为属性“resourceFile"指定的 uildintermediates es esources-anzhi-debug-stripped.ap_' 不存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将 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_' 不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆