How am I supposed to log exceptions with Fabric

609 views Asked by At

Now, where ever I used to have

Crashlytics.logException(e);

I'm getting an error similar to

The type io.fabric.sdk.android.Kit cannot be resolved. It is indirectly referenced from required .class files   MonthlyOffer.java   /JOM Android Phone App/src/joelosteen/android/phone/JOMApp/layout   line 234    Java Problem

So are we not able to use logException with fabric?

** EDIT **

Thanks to sublime text 3 I did a find in files... and commented out every occorrence of lines with fabric or crashlytics in them:

  • find: (.*[fabric|crashlytics].*)
  • in: * (make sure this is your src folder)
  • replace: // $1

** EDIT **

Using Eclipse v4.2.0

1

There are 1 answers

3
joelreeves On

I'm assuming you're using Android Studio. Are you using the latest version of Fabric (2.3.2 as of this writing)? Did the Fabric plugin add the necessary changes to your project?

You can log exceptions by using the logException method as outlined here