Android Crash Reporting Tools Fabric - Crashlytics


Fabric is a modular mobile platform that provides useful kits you can mix to build your application. Crashlytics is a crash and issue reporting tool provided by Fabric that allows you to track and monitor your applications in detail.

How to Configure Fabric-Crashlytics

Step 1: Change your build.gradle:

Add the plugin repo and the gradle plugin:

 buildscript {
  repositories {
    maven { url '' }

  dependencies {
    // The Fabric Gradle plugin uses an open ended version to react
    // quickly to Android tooling updates
    classpath ''

Apply the plugin:

apply plugin: ''
//Put Fabric plugin after Android plugin
apply plugin: 'io.fabric'

Add the Fabric repo:

repositories {
  maven { url '' }

Add the Crashlyrics Kit:

dependencies {
  compile('') {
    transitive = true;

Step 2: Add Your API Key and the INTERNET permission in AndroidManifest.xml

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="">
     ... >

  <uses-permission android:name="android.permission.INTERNET" />

Step 3: Init the Kit at runtime in you code, for example:

public class MainActivity extends ActionBarActivity {

    protected void onCreate(Bundle savedInstanceState) {

      //Init the KIT
      Fabric.with(this, new Crashlytics());


Step 4: Build project. To build and run:

enter image description here

Using the Fabric IDE plugin

Kits can be installed using the Fabric IDE plugin for Android Studio or IntelliJ following this link.

enter image description here

After installing the plugin, restart Android Studio and login with your account using Android Studio.

( short key > CTRL + L)

enter image description here

Then it will show the projects that you have / the project you opened, select the one you need and click next .. next.

Select the kit you would like to add, for his example it is Crashlytics :

enter image description here

Then hit Install. You don't need to add it manually this time like above gradle plugin, instead it will build for you.

enter image description here