Skip to content Skip to sidebar Skip to footer

Proguard Retrace Missing Line Numbers

I'm trying to deobfucate a stack trace from my Android app. I used proguard when building the app and running retrace seem to work, more or less. What isn't working is decoding th

Solution 1:

Turns out the answer is in the Android documentation (believe it or not). I guess I missed it the first time around. You need to specify the source file, like this:

-renamesourcefileattribute SourceFile-keepattributes SourceFile,LineNumberTable

The renamsesourcefileattribute will cause all source files to have the name SourceFile (or whatever you put). "retrace" doesn't care what the source file name is, but if you leave it out, it decides to ignore the line numbers.

This goes in proguard-project.txt which, if you're using Android Studio, you'll find in "your project".app.

Post a Comment for "Proguard Retrace Missing Line Numbers"