How to use "mapping.txt" file for debug and error-exception handler for Release version in Android

Mohammad Salmanian

I want to upload errors to the user in the app to the database server, but in the Release version, because it's used with Proguard, it does not correctly represent the classes that have encountered the error, as in the example Has been laid.

Sample error message

Attempt to write to field 'java.lang.String com.employe.school.Application.Message.c.c' on 
a null object reference

Instead of "c.c", your actual class name will be displayed.

In general, I want to handle the App errors myself and do not use Firebase or other crash reporters.

Is there a way to solve this problem?

Ahmet Zorer

Android studio create mapping(build/outputs/mapping/release/mapping.txt) file under release folder for Release builds. You can use them to find out where the error is occured. Re-mapping is already implemented on Google Play Console and crashlytics. You just put mapping file with corresponding APK to play console and errors are shown correctly.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Android runtime error with release version but not debug version

Android Studio: run/debug release version of app

How to solve "Exception: Missing default handler <on_button_release> in <SmartStartMenu>" error in Python Kivy?

How to deobfuscate jar file using mapping.txt generated by Proguard?

How to remove all debug logging calls before building the release version of an Android app?

How to use debug version of libc

How to use artifactoryPublish to publish release and debug artifacts

How to debug android app on release mode?

How to run android app in release not in debug?

Release and debug version of the application in Android. Two certificates

Android build release version failed. But build debug is fine

How can I debug a Flask application that has a custom exception handler?

Error Handler Servlet: how to get exception cause

how to use handler on android concurrently?

Release, debug version and Authorization Google?

How to use a stack trace dump to debug an exception?

Use different VersionCode for Debug/Release android gradle build

Flutter How to make release version in Android Studio?

Release version not working in android 9 How to Solve This?

How to get android build type (debug, release) as a variable in a CMakeLists.txt file for external native build in android studio?

How to debug the Android App in release mode using Android studio

Release version much snappier than debug version

How to debug in release mode

Laravel error in exception handler

How to create an error handler for replacing debug msg with a MsgBox

How to change setting for debug version in Android Studio

How to use various connection strings in WPF and DataSet in Debug and Release mode?

How to use gomobile to release output non debug apk?

How to use specific fields for specific application builds (debug/release)?