Firebase Crashlytics Setup for Android Apps

📁 Firebase SDK August 3, 2026 6 min read
Banner

Firebase Crashlytics Integration

Step-by-step setup to monitor crashes, upload mapping files, and boost app stability.

Maintaining stability is key to keeping users happy and satisfying Google Play’s quality threshold. **Firebase Crashlytics** is an industry-standard crash reporting SDK that aggregates real-world crash logs into a clean developer dashboard.

1. Adding Firebase to Your Project

Before setting up Crashlytics, link your app to Firebase:

  1. Create a project in the Firebase Console.
  2. Download the `google-services.json` file and place it in your app's `app/` folder.
  3. Add the Google Services dependency in your project-level `build.gradle` file.

2. Integrating the Crashlytics SDK

In your module-level `build.gradle` (usually `app/build.gradle`), apply the Crashlytics Gradle plugin and add the dependency:

  • Plugin: `id 'com.google.firebase.crashlytics'`
  • Dependency: `implementation 'com.google.firebase:firebase-crashlytics-ktx'`

Sync your project and build the application. Crashlytics will automatically initialize when your application launches.

Tip for Proguard/R8: To see readable stack traces instead of obfuscated class names, ensure the Crashlytics Gradle plugin is active. It automatically uploads mapping files generated during your release build to Firebase.

3. Verifying the Setup

To test your setup, write code that forces a test crash:

throw RuntimeException("Test Crash for Firebase Crashlytics")

Run the app, let it crash, and reopen it. Crashlytics will transmit the log, which will appear in your Firebase Console dashboard within minutes.