android - proguard 警告 : the configuration keeps the entry point. ...但不是描述符类

标签 android proguard obfuscation

我已配置:

-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/

相关文章:

使用 ProGuard 混淆 Android 代码……如何知道它已被混淆?

mysql - 查询时如何限制/混淆MySQL值

android - ProGuard 不生成映射文件

android - 重复无限数量的 AnimationDrawable 并在单击按钮时停止

android - 无法使用具有相同键的参数发送改造 2.0 多部分请求

java - Android如何取消绘图前清除?

android - 运行 proguard 后资源未找到异常

android - Proguard 回溯丢失的行号

javascript - 任何人都可以反混淆这个漏洞吗?

java - 更改值 recyclerview.adapter 并将其保存到 mainactivity 中的 textview 中?