Crashlytics Error:(11, 0) Plugin with id 'io.fabric' not found compile lib

前端 未结 6 1255
野的像风
野的像风 2020-12-28 17:36

I am getting the error,

Error:(11, 0) Plugin with id \'io.fabric\' not found

when trying to run crashlytics on my project.

6条回答
  •  Happy的楠姐
    2020-12-28 18:04

    I faced the same issue, when tried to use Fabric plugin for android studio(automated code generation by plugin).I followed this documentation also.

    And finally, I could see there were some missed lines in build.gradle.

    So this is the top level project build.gradle

     // Top-level build file where you can add configuration options common to all sub-projects/modules.
        buildscript {
            repositories {
                jcenter()
                maven { url 'https://maven.fabric.io/public' }
            }
            dependencies {
                classpath 'com.android.tools.build:gradle:1.2.3'
                classpath 'io.fabric.tools:gradle:1.+'
            }
        }
    apply plugin: 'java'
        allprojects {
            repositories {
                jcenter()
                maven { url 'https://maven.fabric.io/public' }
            }
        }
    

    and this is the build.gradle for app module

    apply plugin: 'com.android.application'
    apply plugin: 'io.fabric'
    
        android {
        compileSdkVersion 22
        buildToolsVersion "22.0.1"
    
        defaultConfig {
            applicationId "your application package name"
            minSdkVersion 10
            targetSdkVersion 22
        }
    
        buildTypes {
            release {
                minifyEnabled false
                proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
            }
        }
    }
    
    dependencies {
        compile 'com.google.code.gson:gson:2.3'
        compile 'com.android.support:support-v4:22.0.0'
        testCompile 'junit:junit:4.12'
        testCompile "org.mockito:mockito-core:1.9.5"
        compile('com.crashlytics.sdk.android:crashlytics:2.5.2@aar') {
            transitive = true;
        }
    }
    

    and at last "clean build" and all was set for me.

提交回复
热议问题