最近项目架构调整,为了更快编译项目以及,支持java8, 从build tools 3.0.1 ==> 4.0.1 其中遇到一下问题,简单记录一下解决过程
- 第三方库依赖打包时冲突,简单办法直接,exclude
- android.enableAapt2=false,,默认强制支持,以及r8
- proguard 兼容,但会有些地方报错, ignorewarning 不支持,obfuscationdictionary 不能有 if ,do 关键字,应该是已经重复了
- jar 不能有dex 文件以及重复class,否则,containing both DEX and Java-bytecode content