In order to add Firebase Crash Reporting to your app, perform the following steps:
google-services.json
file from your project into your in app/
directory.google-services
plugin:buildscript {
// ...
dependencies {
// ...
classpath 'com.google.gms:google-services:3.0.0'
}
}
apply plugin
line at the bottom of the file to enable the Gradle plugin:apply plugin: 'com.google.gms.google-services'
compile 'com.google.firebase:firebase-crash:10.2.1'
FirebaseCrash.report(new Exception("Non Fatal Error logging"));
All your fatal exceptions will be reported to your Firebase Console.
FirebaseCrash.log("Level 2 completed.");
For more information, please visit: