Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Failed to resolve: com.crashlytics.sdk.android:crashlytics:2.6.7

I added the following the in my project's build.gradle file:

Buildscript {
   repositories {
       jcenter()
   maven { url 'https://maven.fabric.io/public' }
}
dependencies {
   classpath 'io.fabric.tools:gradle:1.14.3'
}

I addded this in the AndroidManifest.xml file:

<meta-data
   android:name="io.fabric.ApiKey"
   android:value="apiKeyValue"/>

I added this in the build.gradle(app) file:

apply plugin: 'io.fabric'

And the following dependency:

compile('com.crashlytics.sdk.android:crashlytics:2.6.7@aar') {
    transitive = true;
}

After all this, why does not resolve the Crashlytics dependency?

like image 630
Juhi Matta Avatar asked Mar 19 '17 07:03

Juhi Matta


1 Answers

Upgrade your dependencies like so:

Buildscript {
   repositories {
       jcenter()
   maven { url 'https://maven.fabric.io/public' }
}
dependencies {
    //classpath 'io.fabric.tools:gradle:1.14.3' upgrade to the lastest version for compatibility
    classpath 'io.fabric.tools:gradle:1.22.1'
}

And add the following in the build.gradle (app) file:

repositories { 
    maven { url 'https://maven.fabric.io/public' } 
}
like image 137
Cochi Avatar answered Oct 05 '22 23:10

Cochi