In my new project, I would like to integrate Crashlytics from Fabric.io
I already installed Fabric on other projects without problems, one project with a tutorial here: https://fabric.io/kits/android/crashlytics/install
And in another project, I use the Fabric plugin integrated into Android Studio (picture) 
here is the problem:
import android.app.Application; import com.crashlytics.android.Crashlytics; import io.fabric.sdk.android.Fabric; public class UILApplication extends Application { @Override public void onCreate() { super.onCreate(); Fabric.with(this, new Crashlytics());
my build.gradle (Project):
task wrapper(type: Wrapper) { gradleVersion = '2.12' }
build.gradle (Module: app):
buildscript { repositories { mavenCentral() maven { url "http://oss.sonatype.org/content/repositories/snapshots/" } // maven { url 'https://maven.fabric.io/public' } THIS LINE FORGOTTEN } dependencies { classpath 'com.android.tools.build:gradle:2.1.2' classpath 'com.google.gms:google-services:3.0.0' //classpath 'io.fabric.tools:gradle:1.+' } } apply plugin: "com.android.application" //apply plugin: 'io.fabric' repositories { mavenCentral() maven { url "http://oss.sonatype.org/content/repositories/snapshots/" } // maven { url 'https://maven.fabric.io/public' } } android { compileSdkVersion = 24 buildToolsVersion = "23.0.3" defaultConfig { applicationId "agemos.testkalman1" minSdkVersion 15 targetSdkVersion 24 versionCode 1 versionName "1.0" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:appcompat-v7:24.2.0' compile 'com.android.support:design:24.2.0' compile ('com.mapbox.mapboxsdk:mapbox-android-sdk: 4.2.0-SNAPSHOT@aar '){ transitive=true } // // Crashlytics Fabric io // compile('com.crashlytics.sdk.android:crashlytics: 2.6.3@aar ') { // transitive = true; // } }
I have change compileSdkVersion 23-24, but nothing has changed, did someone have this problem?
Thanks in advance for your help :)
I forgot one line
Now it works! sorry for the inconvenience ^^ '
source share