如何在 android studio 中手动 运行 proguard?

How to manually run proguard in android studio?

我需要 运行 混淆 2 个依赖模块。
每个模块需要生成单独的aar。
当我尝试使用 minifyEnabled true 第一个模块构建成功但第二个模块构建失败,因为我使用的一些 类 被混淆了。
我已经在第二个 progurd 配置中定义了 applymapping 标志,但它甚至没有到达那里,因为构建失败了。
只有在所有模块完成构建过程后,才有办法 运行 proguard?
是可以自动还是必须手动?

我用命令行完成了 运行 它..