为属性'resourceFile'指定的\ build \ intermediates \ res \ resources-anzhi-debug-stripped.ap_'不存在 [英] \build\intermediates\res\resources-anzhi-debug-stripped.ap_' specified for property 'resourceFile' does not exist

查看:128
本文介绍了为属性'resourceFile'指定的\ build \ intermediates \ res \ resources-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:

\ build \ intermediates \ res \ resources-anzhi-debug-stripped.ap_'已指定 属性"resourceFile"不存在.

\build\intermediates\res\resources-anzhi-debug-stripped.ap_' specified for property 'resourceFile' does not exist.

推荐答案

有同样的问题! 因此,即时运行与rinkleResources不兼容

Having same issue ! So instant run is not compatible with shrinkResources

1)如果使用Android Studio 2.2

1) if use Android Studio 2.2

收缩资源false

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'指定的\ build \ intermediates \ res \ resources-anzhi-debug-stripped.ap_'不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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