specified for property 'resourceFile' does not exist

来源:互联网 发布:nginx url 跳转 编辑:程序博客网 时间:2024/05/16 08:40

FAILURE: Build failed with an exception.



* What went wrong:
A problem was found with the configuration of task ':app:packageRelease'.
> File 'E:\app\build\intermediates\res\resources-release-stripped.ap_' specified for property 'resourceFile' does not exist.


* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.



原因:Instant Run的功能与shrinkResources不兼容


解决办法:

File --> Settings


取消勾选第一个复选框


点击OK,并将module中的build.gradle中shrinkResources置为false,然后重新编译即可


1 0
原创粉丝点击