acralyzer icon indicating copy to clipboard operation
acralyzer copied to clipboard

Acralizer on Bug Show ever Unknown Source

Open mitsus opened this issue 11 years ago • 2 comments

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?

mitsus avatar Oct 24 '13 09:10 mitsus

I think this is the same as #27. Acralyzer does not (yet?) support ProGuard.

davcamer avatar Nov 04 '13 20:11 davcamer

(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"

ozmium avatar Dec 15 '13 16:12 ozmium