google / play-services-plugins

Plugins to help with using Google Play services SDK.
https://developers.google.com/android/guides/overview
Apache License 2.0
471 stars 138 forks source link

Dependency failing during upgrade to the Firebase Crashlytics SDK #159

Closed tasjapr closed 4 years ago

tasjapr commented 4 years ago

I try to upgrade to the Firebase Crashlytics SDK. The official guide says:

Recommended: For an optimal experience with Firebase Crashlytics, we recommend also adding the Firebase SDK for Google Analytics to your app (make sure to add Version 17.2.3 or later in order to get real time crash-free users and breadcrumbs).

So I added

implementation 'com.google.firebase:firebase-crashlytics:17.2.2'
implementation 'com.google.firebase:firebase-analytics:17.5.0'

to my project. And then I have:

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

Dependency failing: com.google.firebase:firebase-measurement-connector-impl:17.0.4 -> com.google.firebase:firebase-analytics@[16.0.6], but firebase-analytics version was 17.5.0.

The following dependencies are project dependencies that are direct or have transitive dependencies that lead to the art ifact with the issue. -- Project 'app' depends onto com.google.firebase:firebase-analytics@17.5.0 -- Project 'app' depends onto com.google.firebase:firebase-perf@{strictly 16.2.3} -- Project 'app' depends onto com.google.firebase:firebase-core@16.0.6 -- Project 'app' depends onto com.google.firebase:firebase-measurement-connector-impl@{strictly 17.0.4} -- Project 'app' depends onto com.google.firebase:firebase-analytics@{strictly 17.5.0} -- Project 'app' depends onto com.google.firebase:firebase-core@{strictly 16.0.6} -- Project 'app' depends onto com.google.firebase:firebase-perf@16.2.3 -- Project 'app' depends onto com.google.firebase:firebase-config@{strictly 16.1.2}

For extended debugging info execute Gradle from the command line with ./gradlew --info : app:assembleDebug to see the dependency 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 = true }"to your build.gradle file.

Desktop:

tasjapr commented 4 years ago

fixed by updating com.google.firebase:firebase-perf, com.google.firebase:firebase-core and com.google.android.gms:play-services-analytics to the latest versions