A problem occurred configuring project ':app'. > Removing unused resources requires unused code shrinking to be turned on . See http://d.android.com/r/tools/shrink-resources.html for more information.

A problem occurred configuring project ':app'. > Removing unused resources requires unused code shrinking to be turned on . See http://d.android.com/r/tools/shrink-resources.html for more information.

“删除未使用的资源需要打开未使用的代码缩减。” 就是如果我们需要移除项目无用资源,就必须同时打开混淆配置,如图所示:
