简体   繁体   English

将 android 应用程序迁移到 Firebase 时出现问题 Crashlytics

[英]Issue with migrating android app to Firebase Crashlytics

I am migrating an existing android app to firebase crashlytics.我正在将现有的 android 应用程序迁移到 firebase crashlytics。 As of yesterday I was having an issue of not getting the crashes reported on the firebase console, while the implementation was working.截至昨天,我遇到了在 firebase 控制台上没有报告崩溃的问题,而实现正在运行。 I think there was an issue with the sdk firebase dependency.我认为 sdk firebase 依赖项存在问题。 I tried to change the library dependencies versions on the build.gradle files in order to get around the issue but now I am getting this error on the console:我试图更改 build.gradle 文件上的库依赖项版本以解决此问题,但现在我在控制台上收到此错误:

    In project 'app' a resolved Google Play services library dependency depends on another at an exact version (e.g. "[17.1.
2]", but isn't being resolved to that version. Behavior exhibited by the library will be unknown.

Dependency failing: com.google.firebase:firebase-messaging:17.6.0 -> com.google.firebase:firebase-       iid@[17.1.2], but fire
base-iid version was 20.1.5.

The following dependencies are project dependencies that are direct or have transitive dependencies that lead to the artifact with the issue.
-- Project 'app' depends onto com.google.firebase:firebase-crashlytics@{strictly 17.0.0}
-- Project 'app' depends onto io.intercom.android:intercom-sdk-fcm@{strictly 5.5.1}
-- Project 'app' depends onto com.google.firebase:firebase-analytics-impl@{strictly 16.3.0}
-- Project 'app' depends onto com.google.firebase:firebase-messaging@17.6.0
-- Project 'app' depends onto com.google.firebase:firebase-analytics@16.3.0
-- Project 'app' depends onto com.google.firebase:firebase-messaging@{strictly 17.6.0}
-- Project 'app' depends onto io.intercom.android:intercom-sdk-fcm@5.+
-- Project 'app' depends onto com.google.firebase:firebase-iid@{strictly 20.1.5}
-- Project 'app' depends onto com.google.firebase:firebase-crashlytics@17.0.0
-- Project 'app' depends onto com.google.android.gms:play-services-measurement-api@{strictly 16.3.0}
-- Project 'app' depends onto com.google.firebase:firebase-analytics@{strictly 16.3.0}
-- Project 'app' depends onto com.google.firebase:firebase-iid@20.1.5

For extended debugging info execute Gradle from the command line with ./gradlew --info :app:assembleDebug to see the dep
endency paths to the artifact. This error message came from the google-services Gradle plugin, report issues at https://
github.com/google/play-services-plugins and disable by adding "googleServices { disableVersionCheck = false }" to your b
uild.gradle file.

Any ideas on how I should proceed?关于我应该如何进行的任何想法? Do I need to change the version of the sdk crashlytics dependency: implementation 'com.google.firebase:firebase-crashlytics:17.0.0'我是否需要更改 sdk crashlytics 依赖项的版本: implementation 'com.google.firebase:firebase-crashlytics:17.0.0'

Updating your versions should make the error go away.更新您的版本应该会使错误 go 消失。 If you're not seeing crashes coming into your dashboard afterwards, either write into Firebase Support or post a screenshot of your debug crash log.如果之后您没有看到仪表板出现崩溃,请写入Firebase 支持或发布调试崩溃日志的屏幕截图。

Use below configuration if your facing build issues using Android studio 4.1如果您使用 Android studio 4.1 遇到构建问题,请使用以下配置

  • Android Gradle Plugin Version 3.6.0 Android Gradle 插件版本 3.6.0
  • Gradle Version 6.5 Gradle 6.5版
implementation platform('com.google.firebase:firebase-bom:26.2.0')
implementation 'com.google.firebase:firebase-crashlytics'

classpath 'com.google.gms:google-services:4.3.4'
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.4.1'

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM