[英]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-interceptor
和com.squareup.okhttp3:okhttp
添加相同的版本
try 3.4.1尝试3.4.1
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.