proguard warning: the configuration keeps the entry point…but not the descriptor class

前端 未结 6 858
小鲜肉
小鲜肉 2021-01-03 18:45

I\'ve configured:

-keep ,allowoptimization,allowobfuscation,allowshrinking public class     org.jf.dexlib2.dexbacked.** {
    *;
}

but stil

6条回答
  •  借酒劲吻你
    2021-01-03 19:05

    You have told Proguard to keep a certain method void foo(Bar bar); but to obfuscate the descriptor class Bar.

    This is only a problem if you are going to invoke the method from an external source as the signature will be changed by the obfuscation (if you use Proguard to obfuscate a library and then use that library in another app).

    So have the following choices:

    • Configure Proguard to also keep Bar.

    • Use the -dontnote directive to tell Proguard not to print notes like this.

提交回复
热议问题