Reputation: 192
I have integrated fabric(Crashlytics) to android studio 1.2.2 and have set up the build.gradle file according to the doc provided by Twitter Fabric. Application builds fine but when i run it, i see the following error on the line where i initialize fabric with
Fabric.with(this, new Crashlytics());
E/dalvikvm﹕ Could not find class 'com.crashlytics.android.beta.Beta', referenced from method com.crashlytics.android.Crashlytics.<init>.
Was wondering if any one came across this issue when integrating Fabric to android app?
Upvotes: 1
Views: 1784
Reputation: 1954
I believe Fabric is now on version 2.4.0. Make sure your build.gradle file is using that version. You now initialize it like so:
CrashlyticsCore core = new CrashlyticsCore.Builder().disabled(BuildConfig.DEBUG).build();
Fabric.with(this, new Crashlytics.Builder().core(core).build());
You can remove the ".disabled(BuildConfig.DEBUG)" if you want to. That just disables the plugin if you're in debug mode.
Upvotes: 1