简体   繁体   English

Android Studio增量混淆导致错误:找不到符号类

[英]Android Studio incremental obfuscation causing error: cannot find symbol class

I'm trying to obfuscate a project with 2 modules. 我试图混淆2个模块的项目。
The first module is independent and the second is using the first module. 第一个模块是独立的,第二个模块正在使用第一个模块。
Each module is a library so I can't merge both to the same aar. 每个模块都是一个库,因此我不能将两者都合并到同一aar中。
The first module build and obfuscated as expected, but when I'm trying to build the second module the build script fail with the above message (error: cannot find symbol class) and cannot find the obfuscated classes. 第一个模块将按预期的方式进行构建和混淆,但是当我尝试构建第二个模块时,构建脚本会失败,并显示上述消息(错误:找不到符号类),并且找不到混淆的类。
I've try to add -applymapping flag but proguard run only after the build so it doesn't help. 我尝试添加-applymapping标志,但proguard仅在构建后才运行,因此无济于事。
How can I build my project without the need to run proguard manually for every module? 如何在无需手动为每个模块运行proguard的情况下构建项目?

我最终通过运行命令行来解压arr,运行proguard并重新打包所有内容

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM