一、问题

今天打算开发一个组件化app,在build.gradle中配置的时候,报如下异常:

Removing unused resources requires unused code shrinking to be turned on. See http://d.android.com/r/tools/shrink-resources.html for more information.
Affected Modules: app

通过阅读异常日志,大概意思是   :删除未使用的资源需要启用未使用的代码收缩

二、解决方案

我看了下配置,发现混淆没没开启,就是说 如果我们需要移除项目无用资源,就必须同时打开混淆配置

没打开前

打开后正常了,又可以美美哒的干活了,走起

Android编译报 Removing unused resources requires unused code shrinking to be turned on相关推荐

  1. android Removing unused resources requires unused code shrinking to be turned on

    这个问题截图  android Removing unused resources requires unused code shrinking to be turned on. 意思是 " ...

  2. ERROR: Removing unused resources requires unused code shrinking to be turned on. See http://d.androi

    错误如下 ERROR: Removing unused resources requires unused code shrinking to be turned on. See http://d.a ...

  3. 快速解决Android编译报错 : Manifest merger failed with multiple errors, see logs

    快速解决Android编译报错 : Manifest merger failed with multiple errors, see logs 编译项目的时候,遇到Android Manifest合并 ...

  4. CMAKE编译报错 linker input file unused because linking not done

    CMakeLists编译报错linker input file not found 解决办法:add_compile_options(-std=c++11 -o) 删掉 -o 原始CMakeLists ...

  5. Android 编译报错:Could not get resource

    编译报错: Could not resolve all dependencies for configuration ':app:debugRuntimeClasspath'. Could not d ...

  6. android 编译报错,android avc 编译报错neverallow问题查找

    android avc 编译报错neverallow问题查找 2020年08月11日 | 萬仟网移动技术 | 我要评论 在修改avc后,有时候编译会报错neverallow.这个具体是在什么地方定义的 ...

  7. android编译报错(1)

    错误日志1 [ 14% 4275/30484] Ensuring Jack server is installed and started FAILED: setup-jack-server /bin ...

  8. android 编译报错 xm*,解决Android Studio编译后安装apk报错:The APK file does not exist on disk...

    版权声明:本文为[欧阳鹏]原创文章,欢迎转载,转载请注明出处! [http://blog.csdn.net/ouyang_peng] 1.错误描述 今天用Android Studio编译应用后安装AP ...

  9. Android 编译报XML declaration not well-formed错误的解决方法

    项目上一秒还运行得好好的,下一秒编译却突然不成功,报如下错误 FAILURE: Build failed with an exception.* What went wrong: Execution ...

  10. Android 编译报Run with --stacktrace option to get the stack trace

    Android开发在编译过程中经常会报类似如下的错误,突如其来经常会让我们不知所措.这时候最需要的就是静下心来,照着报错的提示排查问题. FAILURE: Build failed with an e ...

最新文章

  1. SOTA论文也未必能被接收,谷歌科学家Eric Jang谈顶会审稿标准
  2. MYSQL管理之主从同步管理
  3. Linux 配置JAVA_HOME
  4. 第六届省赛(软件类)真题----Java大学A组答案及解析
  5. java 蓝桥杯算法训练 s01串(题解)
  6. Python入门:生成器并行(协程)
  7. 【HTML】font标签font属性的使用方法
  8. 记录习惯【Unity 3D中3D场景下嵌套2D Canvas并实现窗口缩放】
  9. 有关前端性能优化—DNS解析优化的方法?
  10. c语言如何多核运行程序,对于多线程程序,单核cpu和多核cpu如何工作?
  11. 数据库范式1NF 2NF 3NF详细阐述
  12. 微信圈子|微卡技术栈
  13. HTML CSS游戏官网网页模板 大学生游戏介绍网站毕业设计 DW游戏主题网页模板下载 游戏娱乐网页成品代码...
  14. 学习笔记0601----mysql主从
  15. perl语言中的.pm文件和.pl文件区别
  16. windows系统垃圾清理的批处理代码
  17. 探索未来|一文看懂小米年度技术峰会 · 人工智能技术专场
  18. skimage库(一)
  19. vulnhub靶场,Tomato
  20. 【PAT甲级 - C++题解】1095 Cars on Campus

热门文章

  1. 罗技m330更换接收器(通过重新对码的方式)
  2. 在2016年,Linux是否还需要Windows的支持呢
  3. 服务器日志修改保存时间,日志服务保留时间
  4. Docker Jenkins 连接agent:SSH key presented by the remote host does not match the key saved in the Know
  5. LC - P03 机器人大冒险
  6. LeetCode LCP 03. 机器人大冒险(前缀和)
  7. 趋势追踪交易课堂:复盘的意义和方法
  8. Effective Java笔记(第二章)
  9. uva 1589 - Xiangqi(象棋)
  10. 聚沙成塔,浙江形成1000 万千瓦“虚拟电厂”