报错信息:

ERROR: 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

解决办法:

buildTypes {release {minifyEnabled true   //移除所有未使用的方法、指令以减小 classes.dex 文件shrinkResources  true     //移除所有在工程中没有用到的资源}
}

注意:您必须启用 minifyEnabled 才能打开代码收缩,然后 shrinkResources 打开资源收缩。

ERROR: Removing unused resources requires unused code shrinking to be turned on.相关推荐

  1. 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 ...

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

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

  3. Error in select(., cyl, mpg) : unused arguments (cyl, mpg)

    Error in select(., cyl, mpg) : unused arguments (cyl, mpg) 目录 Error in select(., cyl, mpg) : unused ...

  4. Code Signing Error: Signing for xxx requires a development team. Select a development team in...

    Code Signing Error: Signing for "xxx" requires a development team. Select a development te ...

  5. oracle unused 语法_oracle--set unused

    一.使用set unused的情况 当表中的某一个列不再使用的时候,我们可以删除这个列 alter table xxx drop column xxx; 或者 alter table xxx drop ...

  6. Android Studio模拟器打不开Emulator: emulator: ERROR: x86_64 emulation currently requires hardware accelera

    Emulator: emulator: ERROR: x86_64 emulation currently requires hardware accelera Emulator: Process f ...

  7. error MSB6006: cmd.exe exited with code 4.解决方法

    这段时间在调试cefclient的代码,发现在编译的时候总是出错,出错信息如下: 1>CustomBuild: 1> copy_resources, and also copy_libra ...

  8. Error:This Gradle plugin requires Studio 3.0 minimum

    导入一个demo提示Error:This Gradle plugin requires Studio 3.0 minimum 在gradle.properties中导入 android.injecte ...

  9. gitlab报错 fatal: index-pack failed error: RPC failed; result=18, HTTP code = 200解决方案

    gitlab报错 "fatal: index-pack failed error: RPC failed; result=18, HTTP code = 200",如下图 这个问题 ...

  10. #error “OpenCV 4.x+ requires enabled C++11 support“解决方法

    #error "OpenCV 4.x+ requires enabled C++11 support"解决方法 参考文章: (1)#error "OpenCV 4.x+ ...

最新文章

  1. ES集群状态、节点、索引等查看及根据字段、排序查询
  2. oracle mysql 乱码_解决Oracle数据库中文乱码
  3. QIIME 2用户文档. 9数据导入Importing data(2019.7)
  4. 1.2.4 ORACLE_SID的含义
  5. 软件架构:5种你应该知道的模式
  6. java多线程编程--基础篇
  7. 高一数学集合知识点整理_高一数学 | 高一数学函数图像知识点总结,实用!
  8. .h头文件 .lib库文件 .dll动态库文件之间的关系
  9. hdu 4277 USACO ORZ
  10. 如何选择基于 Kubernetes 的 PaaS?
  11. C# 中的 is 和 as 运算符 简单举例说明
  12. java和线程相关的关键字有哪些_Java中有哪些机制来保证线程安全?synchronized关键字和volatile关键字...
  13. java的handleback类,CallbackHandler
  14. 【深入理解Java虚拟机学习笔记】第二章 Java 内存区域与内存溢出异常
  15. 收集了一些容易出错的题,可能大家也不会注意到的基础知识(js)
  16. 剑指 offer set 8 树的子结构
  17. 全面了解APON,BPON,EPON,GPON
  18. 阿里云服务器使用https访问项目
  19. STM32 ME909 调试难点
  20. android 代码 drawable,Android Drawable完全解析(一):Drawable源码分析(中)

热门文章

  1. 无线鼠标vs蓝牙鼠标
  2. X509数字证书格式
  3. 抱薪者说 | 君莫:穿越山海,终成“C链小雷锋”
  4. 傲梅备份服务器系统,傲梅轻松备份如何还原系统的详细解析
  5. LDA NCA: 降维与度量学习
  6. 基于四叉树分割和多分辨率相关的快速小波分形编码
  7. ogg是什么文件?ogg怎么转mp3格式?
  8. 亚商策略会|闪马智能乘势“价值重构”,分享智慧城市建设新思路
  9. 17.分段函数、绝对值函数以及幂指函数求导
  10. 计算机word无法打开,电脑中office文件无法打开的三种解决方法