I have some problems with Fabric/Crashlytics.
I'm using Android Studio 1.3.2
Here is my build.gradle
buildscript {
repositories {
jcenter()
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'io.fabric.tools:gradle:1.+'
}
}
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
repositories {
jcenter()
maven { url 'https://maven.fabric.io/public' }
}
android {
...
}
dependencies {
...
compile('com.crashlytics.sdk.android:crashlytics:2.5.2@aar') {
transitive = true;
}
}
I added api key in manifest (I added meta-data com.crashlytics.ApiKey, as well as io.fabric.ApiKey).
I'm starting Fabric in Application class
Fabric.with(this, new Crashlytics());
The problem is that Beta is working (I can share, update, open app), Answers is working (Sessions are listed and everything), I can even log exception with
Crashlytics.logException("Test");
And non-fatal crashes will be added to Fabric dashboard.
But for some reason, no "fatal" crashes are reported and sent to Fabric. Can someone please help me? What could be the reason? What am I doing wrong?
Btw - this started happening after update from Crashlytics to Fabric. I reinstalled plugin, deleted app and added it again, tried without plugin for Android Studio.
Try add it to your Application class:
Fabric.with(this, new Crashlytics());
For test crash report use:
Crashlytics.getInstance().crash();
For report non-fatals use:
Crashlytics.log("Your log");
Crashlytics.logException(new Throwable("This your not-fatal name"));