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?
R8 retrace is a tool for obtaining the original stack trace from an obfuscated stack trace. The stack trace is reconstructed by matching class and method names in a mapping file to their original definitions.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With