acralyzer
acralyzer copied to clipboard
Acralizer on Bug Show ever Unknown Source
I'm using ACRA for track bugs on my android app. I use Acralyzer as BackEnd, but i see that when i symulate a bug in Debug mode (without Proguard) i see stacktrace correctly, but on Release Application (using Proguard) i've ever Unknown Source instead line of error (for example):
Caused by: java.lang.NullPointerException at com.mydomain.my_app_name.ui.webview.myClass.onCreate(Unknown Source)
Can someone help me please?
I think this is the same as #27. Acralyzer does not (yet?) support ProGuard.
(Comment also on issue #27)
There is a good workaround: Use the following settings in your proguard config file, to maintain most of the de-obfuscated class names (especially at the top of the stack trace) and maintain approximate line numbers:
In your proguard-project.txt file, add this -keepattributes SourceFile,LineNumberTable
Ensure that you don't add this to the file: -renamesourcefileattribute SourceFile
...Because it will just rename all the de-obfuscated classes to "SourceFile.java"