升级最新4.0.1 踩坑记录

最近项目架构调整,为了更快编译项目以及,支持java8, 从build tools 3.0.1 ==> 4.0.1 其中遇到一下问题,简单记录一下解决过程

  1. 第三方库依赖打包时冲突,简单办法直接,exclude
  2. android.enableAapt2=false,,默认强制支持,以及r8
  3. proguard 兼容,但会有些地方报错, ignorewarning 不支持,obfuscationdictionary 不能有 if ,do 关键字,应该是已经重复了
  4. jar 不能有dex 文件以及重复class,否则,containing both DEX and Java-bytecode content

猜你喜欢

转载自blog.csdn.net/CSDNno/article/details/107838931
今日推荐