Add Firebase Crashlytics in android java

<ol> <li>Insert Firebase Crashlytics in app build.gradle to get plugin</li> </ol> <pre> plugins { id &#39;com.android.application&#39; id &#39;com.google.firebase.crashlytics&#39; id &#39;com.google.gms.google-services&#39; }</pre> <pre> dependencies { implementation &#39;com.google.firebase:firebase-crashlytics:18.3.2&#39; implementation &#39;com.google.firebase:firebase-analytics:21.2.0&#39; implementation platform(&#39;com.google.firebase:firebase-bom:32.2.0&#39;) }</pre> <p>2. Insert classpath Firebase Crashlytics in build.gradle to get plugin</p> <pre> buildscript { ext.kotlin_version = &quot;1.7.10&quot; repositories { jcenter() google() mavenCentral() maven { url &quot;https://jitpack.io&quot; } } dependencies { classpath &quot;com.android.tools.build:gradle:7.0.4&quot; classpath &#39;com.google.gms:google-services:4.3.14&#39; classpath &#39;com.google.firebase:firebase-crashlytics-gradle:2.9.2&#39; } } allprojects { repositories { jcenter() google() mavenCentral() maven { url &quot;https://jitpack.io&quot; } } } task clean(type: Delete) { delete rootProject.buildDir }</pre> <p>3. For testing can put in launcher Main Activity code below to test workable data button on click.</p> <p><a href="https://medium.com/@hasperong/add-firebase-crashlytics-in-android-java-96555f2872d0">Click Here</a></p>