Crashlytics is a Google-owned Boston, Massachusetts-based software company founded in May 2011 by entrepreneurs Wayne Chang and Jeff Seibert. Crashlytics helps collecting, analyzing and organizing app crash reports.
Google has now completely migrated from Fabric to Firebase Crashlytics. If you are still using Fabric SDK and you are not able to see the crash report on Firebase console then you need to do some changes in the app as well.
Before we get into the how to integrate Firebase Crashlytics, first we need to register and configure our app on Firebase.
Add Firebase Crashlytics to your app
Open top-level build.gradle file and add below classpaths in dependencies
1 | buildscript { |
Add Firebase Crashlytics plugin to your app-level build.gradle file
1 | apply plugin: 'com.google.gms.google-services' |
Initialize Crashlytics
Add Firebase Crashlytics SDK and Google Analytics SDK (recommended) to your app.
1 | dependencies { |
That’s it! Now run your app now and it is successfully configured with firebase Crashlytics!To check if crashes are being reported or not add below code
1 | throw RuntimeException("Test Crash") // Force a crash |
References
Some good reads you may like:-
p.s. Nayan is a platform that offers high precision services for traffic monitoring and road safety. Check out our website