Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在Andriod系统中基于java A和B开发了两个项目,项目A中的代码依赖于项目B中的代码,项目B中的代码也依赖于项目A中的代码。我可以使用Proguard混淆A而不是混淆B ,A和B也能很好地工作吗?
为了防止 B 被混淆,请包括以下内容:
-keep class com.projectB.package.** { *; }
对于项目 B 中的所有包。这在使用这些文件的任何项目的 proguard.cfg 中。当 proguard 运行时,它将知道不混淆 B 中的任何内容,并且项目 A 将被混淆。