android - 如何识别导致类或成员保留在android中的proguard规则?
问题描述
在我的 android 构建过程中,我看到 proguard 发出了大量的注释:
ProGuard, version 6.0.3
Printing configuration to [/home/me/app/proconfout.txt]...
...
Note: the configuration keeps the entry point 'com.me.Class$CacheKey$1 { java.lang.Object extractValue(com.me.Class); }', but not the descriptor class 'com.me.Class'
Note: the configuration keeps the entry point 'com.me.Class$CacheKey$2 { java.lang.Object extractValue(com.me.Class); }', but not the descriptor class 'com.me.Class'
Note: the configuration keeps the entry point 'com.me.Class$CacheKey$3 { java.lang.Object extractValue(com.me.Class); }', but not the descriptor class 'com.me.Class'
Note: the configuration keeps the entry point 'com.me.Class$CacheKey$4 { java.lang.Object extractValue(com.me.Class); }', but not the descriptor class 'com.me.Class'
...
查看合并的 proguard 配置,我没有发现保留特定方法 proguard 的原因。合并的 proguard 配置长 1000 行并没有多大帮助。是否有任何技巧可以确定为什么 proguard 保留它所记录的方法?
解决方案
推荐阅读
- python - 在 ubuntu 上使用 pycharm 时导入 gnuradio
- apache - 安装新版本的 Xubuntu 19.10 后 Phpmyadmin 无法正常工作
- matlab - 连续数岛的计数长度和频率
- asp.net-core - ASP.NET Core OAuth 不适用于 Safari
- javascript - HTML5 如何获取视频的第一帧
- javascript - Reactjs - /src/App.js 找不到文件:'index.js' 与磁盘上的相应名称不匹配:'.\s rc\Routes\Detail\routes'
- simulation - 如何在 NetLogo 上模拟相同的场景 3 次?
- java - Facebook Graph API 错误 - 应用按钮自动检测已禁用
- react-native - React-Native App 在导航时崩溃
- algorithm - 在没有反向操作的情况下保存撤消/重做