Android冲突解决方案
发布时间
阅读量:
阅读量
背景
某日,客户反馈在使用经过混淆处理的aar库时,出现了与其他第三方库的兼容性问题,双方均包含a.a.a.b.a类,要求尽快进行修复。经过一番查阅资料与搜索尝试,最终发现可通过配置自定义混淆规则字典来有效解决该问题,具体实现方式如下所示;

其中class_dictionary.txt文件的内容可能呈现如下形式:
//package_dicitonary.txt
# This obfuscation dictionary contains reserved Java keywords. They can't
# be used in Java source files, but they can be used in compiled class files.
# Note that this hardly improves the obfuscation. Decent decompilers can
# automatically replace reserved keywords, and the
全部评论 (0)
还没有任何评论哟~
