ACRA / acralyzer

Open source backend for ACRA reports.
GNU General Public License v3.0
489 stars 90 forks source link

Acralizer on Bug Show ever Unknown Source #61

Open mitsus opened 10 years ago

mitsus commented 10 years ago

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?

davcamer commented 10 years ago

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

ozmium commented 10 years ago

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