I notice that Google recommends using proguard with shrinking and optimization. However if we do that, then won't we lose the line number trace in case of reported bugs? The line numbers reported in the error wouldnt match the actual line number of the code so you cant really see where the error occured
Am I missing something? Shouldnt we disable shrinking ! Thank you
ProGuard has an option to keep the line number info and the mapping for the obfuscated names, so you can retrace it back to your original code.
-printmapping out.map
-renamesourcefileattribute SourceFile
-keepattributes SourceFile,LineNumberTable
More info here:
http://proguard.sourceforge.net/manual/examples.html#stacktrace
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.