Proguard: avoiding naming collisions with pre-obfuscated library JARs

后端 未结 2 1025
既然无缘
既然无缘 2021-01-18 03:20

It seems that Proguard doesn\'t make any attempt to avoid naming collisions with classes in library JARs when it renames/repackages classes. Is this correct, or have I just

2条回答
  •  佛祖请我去吃肉
    2021-01-18 04:07

    In closed libraries to prevent conflict between multiple obfuscated modules/libraries you should use

    -keeppackagenames

    proguard rule to prevent complete classes repackaging, otherwise you can find errors like:

    Duplicate class a.a.a.a in [jetified-lib1] and a.a.a.a in [jetified-lib2]

自定义标题
段落格式
字体
字号
代码语言
提交回复
热议问题