rosghub
rosghub

Reputation: 9264

Android trouble with crash reports in developer console

So I'm building my app with proguard which obfuscates the code, and I am uploading my mapping.txt to the deobfuscation files. My crash reports show the class and method names, but they don't show line numbers.

In my build.gradle:

    buildTypes {
    release {
        minifyEnabled true
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}

So then I upload as a deobfuscation file: ProjectFolder/app/build/outputs/mapping/release/mapping.txt

So my question is:

Upvotes: 3

Views: 1094

Answers (1)

Farbod Salamat-Zadeh
Farbod Salamat-Zadeh

Reputation: 20110

Yes, I believe mapping.txt is the right one.

As for viewing line numbers, I added the following to my proguard-rules.pro file:

# To be able to see line numbers in stack traces

-renamesourcefileattribute SourceFile
-keepattributes SourceFile,LineNumberTable

Upvotes: 5

Related Questions