Android Studio 2.2 打包出现问题

来源:互联网 发布:网络安全管理分析报告 编辑:程序博客网 时间:2024/05/07 12:54

Android Studio 2.2 ,打包时出错

Error:A problem was found with the configuration of task ':community-service:packageRelease'.> File '/Users/ldq/pro/afuuserclient/community-service/build/intermediates/res/resources-release-stripped.ap_' specified for property 'resourceFile' does not exist.

百度查了下,有人说是开启了Instant Run,关闭即可
这里写图片描述

我试过,并没什么用
又有人说是设置了shrinkResources,只需将其设为false。试了下,只需要将shrinkResources改为false

 buildTypes {        debug {            signingConfig signingConfigs.release        }        release {            signingConfig signingConfigs.release            minifyEnabled false            shrinkResources false        }    }    productFlavors {    }

亲测OK

0 0
原创粉丝点击