[英]Running flutter app in android emulator due to crashlytics build.gradle error
I have been facing an issue with running my app on android due to some crashlytics error.由于一些 crashlytics 错误,我在 android 上运行我的应用程序时遇到了问题。 The following is the error I am getting
以下是我得到的错误
I checked my app level build.gradle and still unable to figure out the issue.我检查了我的应用程序级别 build.gradle 仍然无法找出问题所在。 Can someone help me with it.
有人可以帮我吗。 The following is my build.gradle for reference.
以下是我的build.gradle供参考。
Any help would be appreciated.任何帮助,将不胜感激。
UPDATE: I have added the following code into my build.gradle and it fixed the crashlytics error.更新:我已将以下代码添加到我的 build.gradle 中,并修复了 crashlytics 错误。
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.
以下是错误的屏幕截图。
Please help me out with this error.请帮我解决这个错误。
UPDATE 2:更新 2:
UPDATE 3更新 3
UPDATE 4:更新 4:
UPDATE 5更新 5
In android
folder add classpath 'com.google.firebase:firebase-crashlytics-gradle:2.5.0'
line to dependencies
block:在
android
文件夹中,将classpath 'com.google.firebase:firebase-crashlytics-gradle:2.5.0'
行添加到dependencies
项块:
buildscript {
// buildscript config
dependencies {
// Other dependencies
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.5.0'
}
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.