我已配置:
-keep ,allowoptimization,allowobfuscation,allowshrinking public class org.jf.dexlib2.dexbacked.** {
*;
}
但仍然收到警告:
Note: the configuration keeps the entry point 'com.trusteer.trf.dex_parser { int get_strings_count(org.jf.dexlib2.dexbacked.DexBackedDexFile); }', but not the descriptor class 'org.jf.dexlib2.dexbacked.DexBackedDexFile'
我正在使用 proguard 4.7 版(在 Android SDK 中)
我该怎么办?
最佳答案
你已经告诉 Proguard 保留某个方法 void foo(Bar bar);
但要混淆描述符类 Bar
。
这只有在您要从外部源调用该方法时才会出现问题,因为签名会被混淆更改(如果您使用 Proguard 对库进行混淆,然后在另一个应用程序中使用该库)。
所以有以下选择:
将 Proguard 配置为也保留
Bar
。使用
-dontnote
指令告诉 Proguard 不要像这样打印笔记。
关于android - proguard 警告 : the configuration keeps the entry point. ...但不是描述符类,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28690994/