开发者

Proguard retrace tool's output

I'm experimenting with proguard now that it's easier to use from within eclipse. I've exported a signed version of my app with a deliberate bug that causes a crash for testing. After I get the stack trace and run retrace -verbose mapping.txt stack.txt, instead of giving me where the error occurs, it gives me the class where error happens and list a of methods, one of which is the method where the exception happens.

I've used the official guide for all of this and edited the logcat stack trace capture to be in the same format as the dev console. Anyone 开发者_运维技巧know what the problem could be?


If your obfuscated code doesn't contain line number information, mapping an obfuscated method name (like 'a') to the original method name is no longer unambiguously possible, due to name overloading. The examples in the ReTrace manual illustrate the difference.

To avoid this effect, you can preserve line number information in the obfuscation step, as shown in an example in the ProGuard manual.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜