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

kj007 picture kj007 · Mar 2, 2015 · Viewed 22.1k times · Source

Trying to add Twitter Fabric SDK. I have added all dependencies suggested by Twitter.

Modified my build.gradle:

buildscript {
    repositories {
        jcenter()
        maven { url 'https://maven.fabric.io/repo' }
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:0.13.3'
        // The Fabric Gradle plugin uses an open ended version to
        // react quickly to Android tooling updates
       classpath 'io.fabric.tools:gradle:1.+'
    }
}

apply plugin: 'com.android.application'

//Put Fabric plugin after Android plugin
apply plugin: 'io.fabric'

repositories {
    jcenter()
    maven { url 'https://maven.fabric.io/repo' }
}

When tries to synch got this error:

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

While project was build successful before modifying build.gradle file for Twitter SDK.

Answer

krishna5688 picture krishna5688 · Jul 19, 2016

You need to add your API Key to the Android Manifest:

<application>
    <meta-data
        android:name="com.crashlytics.ApiKey"
        android:value="your key here" />
</application>

Same solution is provided here.