I've been looking around the firebase console for half an hour for a button or menu allowing me to upload a new crash reporting mapping file. And cannot find a way. I've done it in the past, but cannot work out how now. Perhaps something has changed. It would be nice to have a big button on the screen saying "upload a new mapping file" wouldn't it? Can someone put me out of my misery?
- For me it says "UPLOAD" where yours has a date. Could it be that you've already uploaded a mapping file for each version?Frank van Puffelen– Frank van Puffelen2016-12-08 07:25:40 +00:00Commented Dec 8, 2016 at 7:25
- I do have a newer version that was uploaded to the developer console 22 hours ago and is published. Perhaps it takes a long time for the developer console to tell firebase there is a new version. Perhaps at the moment firebase does not know there is a version 23. I'll let you know if my firebase console presents me a UPLOAD button for version 23 in future. Thanks Frank.pbm– pbm2016-12-08 07:56:51 +00:00Commented Dec 8, 2016 at 7:56
- 2Note that firebase.google.com/docs/crash/… says "You can't upload mapping.txt files until at least one crash or error is reported for a given app version, but the Gradle task doesn't have this limitation." Setting up the gradle task is described in the checked answerpbm– pbm2017-02-22 02:22:11 +00:00Commented Feb 22, 2017 at 2:22
4 Answers
Sorry if I'm late, but instead of creating an exception, like some suggest, here is a cleaner official way Firebase docs suggest. This guide will teach you how to automatically push the release apk mapping to Firebase Crash Reporter from your Android Studio IDE.
Go to the Get deobfuscated crash reports section. I'll cover some maybe-hard to follow points in that guide.
- Add all gradle lines as suggested in the docs
- Download the Private Key file as suggested
- Copy this Private Key file to the root folder of your project
- In your
gradle.propertiesfile, add this lineFirebaseServiceAccountFilePath=../name-of-downloaded-file.json - In terminal, at the root of your project, run this line
./gradlew :app:firebaseUploadReleaseProguardMapping.
This will build the release apk and upload it's mappings to Firebase in one shot.
Just keep in mind that if you're using a version control or open sourcing your project, keep your Private Key file ignored or kept safe from other team members.
Note that, you can also assign a shortcut to run this arcane gradle command by clicking on Gradle tab on right-hand-side. Then (root) -> Tasks -> Other -> firebaseUploadReleaseProguardMapping (right-click on this). Then add your favourite shortcut :)
4 Comments
build/outputsMANUALLY UPLOAD "mapping.txt" WITHOUT GRADLE TASK
- Mapping file is Application Based
Mapping files are Application Version Based
So you have to upload mapping.txt file to firebase console after each version release.
After first crash or error is reported for a given app version, you can manually upload mapping.txt file.
You can find the file to upload at a file path that is similar to the following, but specific to your app:
<project root>/<module name>/build/outputs/mapping/<build type>/<appname>-proguard-mapping.txt Example:
app/build/outputs/mapping/debug/app-proguard-mapping.txt At Firebase Console,
Go to,
Firebase Console > Select Your App > Select "Crash Reporting" From Left Menu > Navigate To "MAPPING FILES" Tab > Press "UPLOAD" Against Your App Version. > DONE
See screenshot,
READ HERE Official instruction for manual mapping file upload to firebase console
1 Comment
On the screen that you're showing, the dates are showing when you last uploaded a mappings file for that app version. Now, hover the mouse over one of those rows. Notice the three dots menu icon on the right. Click that. Delete the mapping file. Then, then you should have the option to upload a new one.
There will also be a way to upload mappings files using a Gradle plugin coming in the future.

