您的位置:首页 > 运维架构

AS2.2打包:release-stripped.ap_' specified for property 'resourceFile' does not exist

2016-09-22 10:27 459 查看
刚才打包一直提示下面的问题:

Error:A problem was found with the configuration of task ':app:packageBAIDURelease'.
> File 'D:\AndroidStudioProjects\CodeBlog\app\build\intermediates\res\resources-BAIDU-release-stripped.ap_' specified for property 'resourceFile' does not exist.


查资料一直提示说disable Instant Run就可以,然而并没有效果。后面Google到AS2.2上的编译打包有变化,与改错误相关的介绍:https://developer.android.com/studio/build/shrink-code.html



没有梯子的童鞋看上图

意思是Gradle2.0以上版本
minifyEnabled
字段为true时已经包含了
shrinkResources
,即在代码优化时会自动去掉多余资源,所以在打正式包时也不需要设置
shrinkResources
字段。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  gradle