Set up Crashlytics: Android

classpath 'com.google.firebase:firebase-crashlytics-gradle:2.4.1'
// Apply the Crashlytics Gradle plugin
apply plugin: 'com.google.firebase.crashlytics'
// Import the BoM for the Firebase platform
implementation platform('com.google.firebase:firebase-bom:26.1.1')


// Declare the dependencies for the Crashlytics and Analytics libraries
// When using the BoM, you don't specify versions in Firebase library dependencies
implementation 'com.google.firebase:firebase-crashlytics-ktx'
implementation 'com.google.firebase:firebase-analytics-ktx'
Log.d("TEST", "${1/0}");

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store