title: Build error after migrating from Crashlytics SDK to Fabric
body: <p>Recently, we've upgraded our organization's Crashlytics account to Fabric, and I'm trying to replace the old Crashlytics SDK with the new Fabric SDK in our existing apps. I've followed <a href="https://dev.twitter.com/twitter-kit/android/integrate" rel="noreferrer">the migration instructions</a>, and it's been largely painless, except that I'm now receiving a build error when I try to compile. The line in question that's causing the error is the bootstrap call:</p>
  
  <pre><code>Fabric.with(this, new Crashlytics());
  </code></pre>
  
  <p>The error that's being returned is:</p>
  
  <pre><code>Error:(55, 11) error: no suitable method found for with(MyActivity,Crashlytics)
  method Fabric.with(Fabric) is not applicable
  (actual and formal argument lists differ in length)
  method Fabric.with(Context,Kit...) is not applicable
  (argument type Crashlytics does not conform to vararg element type Kit)
  </code></pre>
  
  <p>Evidently, <code>new Crashlytics()</code> isn't being recognized as a valid argument for the <code>with(Context,Kit...)</code> method for some reason.</p>
  
  <p>Just to rule out something specifically related to the vararg nature of the method call, I also tried it with more than one kit (e.g. <code>Fabric.with(this, new Crashlytics(), new MoPub())</code>) and the exact same error was still returned.</p>
  
  <p>Finally, I tried moving the call to the <code>onCreate()</code> method of my Application subclass, and that didn't help either.</p>
  
  <hr>
  
  <p>Relevant sections from build.gradle:</p>
  
  <pre><code>buildscript {
    repositories {
      maven { url 'https://maven.fabric.io/public' }
    }
  
    dependencies {
      classpath 'io.fabric.tools:gradle:1.+'
    }
  }
  
  apply plugin: 'com.android.application'
  apply plugin: 'io.fabric'
  
  repositories {
    maven { url 'https://maven.fabric.io/public' }
  }
  
  dependencies {
    compile fileTree(dir: 'libs', include: '*.jar')
    ...
    compile('com.crashlytics.sdk.android:crashlytics:2.2.1@aar') {
      transitive = true;
    }
  }
  </code></pre>
  
  <p>I've also verified that the Fabric plugin is properly installed and working, and that the old Crashlytics plugin is no longer installed:</p>
  
  <p><img src="https://i.stack.imgur.com/hQ75O.png" alt="Plugins list shown Fabric plugin present, and Crashlytics plugin not present">
  <img src="https://i.stack.imgur.com/nrcS4.png" alt="Fabric plugin running"></p>