trycatchx / RocketX

🔥🔥 android 端编译加速插件🚀 动态识别未改动 module 并在编译流程中替换为 aar ,只编译改动模块,加速 Android apk 的编译速度。
861 stars 104 forks source link

针对 Flutter 项目需要额外的处理吗 #70

Open alinainai opened 1 year ago

alinainai commented 1 year ago

针对 Flutter 项目需要额外的处理吗,首次编译通过后,更改代码后再编译出现如下问题:修改了其他库代码,未修改flutter代码 ` Type EventBus$1 is defined multiple times: kxx/app/build/intermediates/mixed_scope_dex_archive/productDebug/out/313c03228958fa597e67e1d693a640788fab4a55c133fba923e8d1a4b618e4b6_1.jar:classes.dex, kxx/app/build/intermediates/mixed_scope_dex_archive/productDebug/out/660e02fccb1de8dd62024f4e55c7bdbaea7d4de2b731e9a91f106610e21235e8_1.jar:classes.dex

`

trycatchx commented 1 year ago

excludeTransForms: 编译阶段可以禁用的 transform ,编译速度更快(可通过build 的 log 搜索关键字 transFormList 查看自己项目引用了哪些 transform,并手动配置在 gradle.properties 文件下)

使用空格间隔开

excludeTransForms = com.alibaba.arouter AAA bbb