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.
Before setting up Crashlytics, link your app to Firebase:
In your module-level `build.gradle` (usually `app/build.gradle`), apply the Crashlytics Gradle plugin and add the dependency:
Sync your project and build the application. Crashlytics will automatically initialize when your application launches.
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.