Running flutter app in android emulator due to crashlytics build.gradle error

Viewed 150

I have been facing an issue with running my app on android due to some crashlytics error. The following is the error I am getting

enter image description here

I checked my app level build.gradle and still unable to figure out the issue. Can someone help me with it. The following is my build.gradle for reference.

enter image description here

Any help would be appreciated.

UPDATE: I have added the following code into my build.gradle and it fixed the crashlytics error.

buildscript {
    // buildscript config

    dependencies {
        // Other dependencies
        classpath 'com.google.firebase:firebase-crashlytics-gradle:2.5.0'
    }
}

Now I am getting this new error while running. It's some shrinker error. The following are the screenshot of the error.

enter image description here

enter image description here

Please help me out with this error.

UPDATE 2:

enter image description here enter image description here

UPDATE 3

enter image description here

UPDATE 4:

enter image description here

UPDATE 5

enter image description here

1 Answers

In android folder add classpath 'com.google.firebase:firebase-crashlytics-gradle:2.5.0' line to dependencies block:

buildscript {
    // buildscript config

    dependencies {
        // Other dependencies
        classpath 'com.google.firebase:firebase-crashlytics-gradle:2.5.0'
    }
}
Related