Invalid line number with ACRA

I user android / proguard / ACRA. Can someone please tell me why in the crash reports I get the wrong line numbers (line number indicating a clearly wrong status)?

It is really annoying that I cannot find out the exact line number of the accident, so I cannot fix the error reported by the user Thank you

PS: I am using a mapping file corresponding to the version I am releasing

+4
source share
3 answers

I found an answer for who it is interesting. You should avoid (preverify, optimize, and shrink). This displays all line numbers correctly, as the code does not play with

+1
source

With some optimizations (especially class merging and the inline method), ProGuard may not be able to save all debugging information, because the java class file format does not support it. Information can only be approximate in these cases. However, these should be exceptions; if the information is not true, you are probably using the wrong mapping file.

+2
source

After several hours of research and attempts, many approaches. I have found a solution.

Change

proguardFiles getDefaultProguardFile( 'ProGuard-android-optimize.txt' )...

on the

proguardFiles getDefaultProguardFile( 'ProGuard-android.txt' )...

0
source

Source: https://habr.com/ru/post/1416463/


All Articles