错误:找不到fabric.aar(io.fabric.sdk.android:fabric:1.3.17)

时间:2018-05-28 10:57:42

标签: android gradle google-fabric

在我没有改变任何东西之前它工作了但是今天我收到了这个错误,这里是我的gradle

buildscript {
repositories {
    mavenCentral()
    maven { url 'https://maven.fabric.io/public' }
    jcenter()

}

dependencies {
    classpath 'io.fabric.tools:gradle:1.+'
}}

6 个答案:

答案 0 :(得分:17)

看起来jcenter报告说它有结构和崩溃,但他们没有。

为我解决的问题是在这样的jcenter之前移动织物专家:

repositories {
    mavenLocal()
    maven { url "https://maven.fabric.io/public" }
    jcenter()
    google()
}

答案 1 :(得分:12)

面料有一些变化请检查: - https://docs.fabric.io/android/changelog.html#fabric-dependency-to-1-4-3

将此添加到您的gradle: -

compile group: 'io.fabric.sdk.android', name: 'fabric', version: '1.4.3'

答案 2 :(得分:8)

我今天也遇到了同样的问题。我也在使用crashlytics。我刚刚将崩解剂的版本更改为" 2.9.3"来自" 2.6.5"并成功构建gradle。

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

答案 3 :(得分:2)

重新安装Windows和android studio后我遇到了同样的问题。我有

dependencies {
        classpath 'io.fabric.tools:gradle:1.25.1'

    }
with

    implementation('com.crashlytics.sdk.android:crashlytics:2.8.0@aar')

我唯一的解决方案是升级到

dependencies {
        classpath 'io.fabric.tools:gradle:1.25.4'

    }

with

implementation('com.crashlytics.sdk.android:crashlytics:2.9.3@aar') 

希望它有所帮助!

答案 4 :(得分:1)

1,清理项目 2,改版了   编译( 'com.crashlytics.sdk.android:answers:1.4.2@aar')

答案 5 :(得分:0)

在build.gradle(模块应用)中:如下修改

buildscript {
    repositories {
        maven { url 'https://maven.fabric.io/public' }
    }
    dependencies {
        // These docs use an open ended version so that our plugin
        // can be updated quickly in response to Android tooling updates

        // We recommend changing it to the latest version from our changelog:
        // https://docs.fabric.io/android/changelog.html#fabric-gradle-plugin
        classpath 'io.fabric.tools:gradle:1.27.0'
    }
}
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'

repositories {
    maven { url 'https://maven.fabric.io/public' }
}
android {
    compileSdkVersion 28
    buildToolsVersion '28.0.3'
    defaultConfig {
        applicationId "com.rameshr.project"
        minSdkVersion 16
        targetSdkVersion 28
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
         release {
             minifyEnabled false
             proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
         } 
}

dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })
    implementation 'com.android.support:appcompat-v7:28.0.0' 
    implementation 'com.android.support.constraint:constraint-layout:1.1.3'
    testImplementation 'junit:junit:4.12' 
    implementation('com.crashlytics.sdk.android:crashlytics:2.8.0@aar') {
        transitive = true;
    } 

}