Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Upgrade Firebase Crash Reporting to Firebase Crashlytics?

Unable to build my project. showing error message

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

Error:(62, 13) Failed to resolve: com.crashlytics.sdk.android:crashlytics:2.7.1

Steps followed

enter image description here

https://firebase.google.com/docs/crashlytics/upgrade-from-crash-reporting

enter image description here

https://codelabs.developers.google.com/codelabs/firebase-android/#14

If anyone have any idea please share your idea. Thanks in advance.

like image 428
Naveen Mahaur Avatar asked Nov 08 '22 09:11

Naveen Mahaur


1 Answers

make some change in dependency ..

apply plugin: 'io.fabric'

 compile 'com.google.firebase:firebase-core:11.8.0'
compile('com.crashlytics.sdk.android:crashlytics:2.9.1@aar') {
    transitive = true
}
apply plugin: 'com.google.gms.google-services'

project lavel dependency

  repositories {
    maven {
        url 'https://maven.fabric.io/public'
    }
    google()
    jcenter()
}
dependencies {
    classpath 'com.android.tools.build:gradle:3.0.0'
    classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
    classpath 'com.google.gms:google-services:3.2.0'

    classpath 'io.fabric.tools:gradle:1.25.1'
    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files
}
like image 79
Android Team Avatar answered Nov 14 '22 21:11

Android Team