android混淆代码后崩溃日志中不显示行号的问题

问题已解决。原因是在混淆代码时默认会去掉class文件中的调试信息(源码的行号、源文件信息等),需要在混淆配置文件中申明保持这些信息:


-renamesourcefileattribute SourceFile
-keepattributes SourceFile,LineNumberTable

猜你喜欢

转载自luke-feng.iteye.com/blog/2177900
今日推荐