简体   繁体   English

添加 firebase crashlytics 时,Android 应用程序崩溃

[英]Android app crashes when adding firebase crashlytics

I'm migrating from fabric to firebase crashlytics.我正在从结构迁移到 firebase crashlytics。 I've been able to migrate to AndroidX (which I believe was necessary).我已经能够迁移到 AndroidX(我认为这是必要的)。 Then I followed this steps but the app crashes when I add the crashlytics dependency (everything works if I comment out the crashlytics implementation line).然后我遵循了这些步骤,但是当我添加 crashlytics 依赖项时应用程序崩溃了(如果我注释掉 crashlytics 实现行,一切都正常)。

implementation 'com.google.firebase:firebase-crashlytics:17.0.0'

When using a physical phone, I don't get any error, just some SQLiteEventStore and JobInfoScheduler log and the sigkill:使用物理电话时,我没有收到任何错误,只有一些 SQLiteEventStore 和 JobInfoScheduler 日志以及 sigkill:

https://gist.github.com/raquelhortab/60ebd50ead5aa820c34bc271a09e94b7 https://gist.github.com/raquelhortab/60ebd50ead5aa820c34bc271a09e94b7

When using an emulator I get an okhttp3 error (you can see it in the gist above).使用模拟器时,我收到 okhttp3 错误(您可以在上面的要点中看到)。 Again, the only difference is the crashlytics line in the app's build.gradle.同样,唯一的区别是应用程序 build.gradle 中的 crashlytics 行。

The okhttp3 error made me think I might have to update glide and okhttp3 (which is not that easy) but it works just fine without crashlytics so I don't think that's the problem. okhttp3 错误让我觉得我可能需要更新 glide 和 okhttp3(这不是那么容易),但它在没有 crashlytics 的情况下工作得很好,所以我认为这不是问题。

I've also tried the crashlytics version 17.2.2 and newer versions of firebase-related implementations, you can find the gradle files in the gist as well.我还尝试了 crashlytics 版本 17.2.2 和与 firebase 相关的实现的更新版本,您也可以在 gist 中找到 gradle 文件。

PS: I apologize if this has already been answered, searching crashes and crashlytics leads to many questions of crashes that are not realated to crashlytics (which is logic) PS:如果这已经得到回答,我深表歉意,搜索崩溃和 crashlytics 会导致许多与 crashlytics 无关的崩溃问题(这是逻辑)

It doesn't seem firebase issue from the error stack provide.错误堆栈提供的似乎不是 firebase 问题。 Try to add the same version for com.squareup.okhttp3:logging-interceptor and com.squareup.okhttp3:okhttp尝试为com.squareup.okhttp3:logging-interceptorcom.squareup.okhttp3:okhttp添加相同的版本

try 3.4.1尝试3.4.1

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 当我在 Android Studio 中进行增量构建时,Firebase Crashlytics 崩溃并显示“缺少 Crashlytics 构建 ID” - When I'm doing an incremental build in Android Studio, Firebase Crashlytics crashes with 'The Crashlytics build ID is missing' 当Crashlytics开始时,应用程序崩溃了 - App crashes when Crashlytics started 添加 firebase crashlytics android 时出现问题 - Problem with adding firebase crashlytics android Firebase crashlytics 中的应用内消息传递崩溃? - In-App Messaging crashes in firebase crashlytics? Android Studio:添加Firebase后,应用程序崩溃 - Android Studio: App crashes after adding Firebase Firebase Crashlytics 在手动启用时不报告崩溃 - Firebase Crashlytics not reporting crashes when manually enabled 将Firebase ML视觉依赖项与Firebase数据库依赖项添加时,Android应用程序崩溃 - android app crashes when adding firebase ML vision dependencies with firebase database dependencies Crashlytics:在Android Studio中添加新应用时找不到项目 - Crashlytics: Cannot Find Project When Adding New App in Android Studio 由于TypeNotPresentException,Android crashlytics应用在启动时崩溃 - Android crashlytics app crashes on launch due to TypeNotPresentException 添加 react-native-firebase crashlytics 后,Android 应用程序在第二个构建中崩溃,MainApplication 出现 classNotFound 异常 - After add react-native-firebase crashlytics the Android App crashes in the second build with classNotFound Exception for MainApplication
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM