1

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 Answer 1

1

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'
    }
}
23
  • I added that and it fixed the crashlytics error but now I am getting this shrinker error. Please check the updated question for error screenshots and help me out with it. Commented Feb 21, 2021 at 16:56
  • stackoverflow.com/questions/48249633/…
    – fartem
    Commented Feb 22, 2021 at 5:21
  • I followed what it said in that thread but after changing my minSDK to 21 my app is stuck at ✓ Built build/app/outputs/flutter-apk/app-debug.apk. for the past 30-45 mins Commented Feb 22, 2021 at 6:46
  • Try building it again. It might take a while, but shouldn't be that long.
    – Apps 247
    Commented Feb 22, 2021 at 8:04
  • @Apps247 I did but what it does is that it launches the app for a few seconds and after that it just closes down and is stuck on ✓ Built build/app/outputs/flutter-apk/app-debug.apk. and doesn't do anything after that Commented Feb 22, 2021 at 16:29

Not the answer you're looking for? Browse other questions tagged or ask your own question.