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.
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.