Search code examples
androidtwittergradletwitter-fabric

Exclude crashlytics from twitter fabric


I would like to exclude crashlytics from fabric because when I try to integrate the sdk following the instructions here, I get the following error:

Error:Execution failed for task ':app:fabricCleanupResourcesDebug'.
> Crashlytics Developer Tools error.

My goal is to be able to compose a tweet with this guide which I believe, needs the previous plugin to be installed first. Adding maven { url 'https://maven.fabric.io/repo' } only doesn't work and result in a not found library exception. Thank you


Solution

  • Thank you but I found a way to get it working by using the following directives in my build.gradle:

    buildscript {
    repositories {
        jcenter()
        mavenCentral()
        maven { url 'https://maven.fabric.io/public' }
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:1.0.0'
        classpath "io.fabric.tools:gradle:1.+"
    }
    }
    
    dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:appcompat-v7:21.+'
    compile ('com.twitter.sdk.android:twitter:1.1.1@aar') {
        transitive = true;
    }
    compile ('com.twitter.sdk.android:tweet-composer:0.7.2@aar')
    {
        transitive = true;
    }
    compile project(':library')
    }