What is causing this Crashlytics compile warning? (Auto-Linking supplied ‘…’ framework linker option at ‘…’ is not a dylib)

The Missing Link: This error is almost always produced by not having the binary linked to the library (In this case it would be the Crashlytics.framework): Trying to build the target MyApp (which includes headers with #import <Crashlytics/Crashlytics.h> will produce the error: ld: warning: Auto-Linking supplied ‘../../Crashlytics.framework/Crashlytics’, framework linker option at ../../Crashlytics.framework/Crashlytics is not a … Read more

How to disable Crashlytics during development

I found the solution from Crashlytics (with Fabric integration) Put following code inside your Application class onCreate() Crashlytics crashlytics = new Crashlytics.Builder().disabled(BuildConfig.DEBUG).build(); Fabric.with(this, crashlytics); EDIT: In Crashalitics 2.3 and above, this is deprecated. The correct code is: CrashlyticsCore core = new CrashlyticsCore.Builder().disabled(BuildConfig.DEBUG).build(); Fabric.with(this, new Crashlytics.Builder().core(core).build()); or Fabric.with(this, new Crashlytics.Builder().core(new CrashlyticsCore.Builder().disabled(BuildConfig.DEBUG).build()).build()); (copied from Crashlytics deprecated method … Read more

What does transitive = true in Gradle exactly do (w.r.t. crashlytics)?

You are using the @aar notation. It means that you want to download only the aar artifact, and no transitive dependencies. You can check Dependency management in Gradle in the official documentation. In particular: An artifact only notation creates a module dependency which downloads only the artifact file with the specified extension. Existing module descriptors … Read more

Crashlytics Android SDK – custom UncaughtExceptionHandler

UPDATE Please see @kmityak answer as Crashlytics/Fabric initialization is now asynchronous and my solution below is no longer valid. ORIGINAL ANSWER You can set your custom UncaughtExceptionHandler providing that it will pass exception to default UncaughtExceptionHandler to be handled later via Crashlytics. Below code is implemented inside Application subclass: private static Thread.UncaughtExceptionHandler mDefaultUEH; private static … Read more