Dependencies Problem

675 views
Skip to first unread message

HARSH TIWARI

unread,
Aug 29, 2020, 12:27:06 PM8/29/20
to Firebase Google Group
When I use :- implementation 'com.google.firebase:firebase-ml-vision:24.1.0'  
then it shows the following error:-

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

Dependency failing: com.google.android.gms:play-services-vision-image-label:18.0.4 -> com.google.android.gms:play-servic
es-vision-common@[19.1.0], but play-services-vision-common version was 19.1.2.

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-ml-vision@{strictly 24.1.0}
-- Project 'app' depends onto com.google.android.gms:play-services-vision-common@{strictly 19.1.2}
-- Project 'app' depends onto com.google.android.gms:play-services-mlkit-text-recognition@{strictly 16.1.1}
-- Project 'app' depends onto com.google.android.gms:play-services-mlki...@16.1.1
-- Project 'app' depends onto com.google.firebase:firebase-...@24.1.0
-- Project 'app' depends onto com.google.android.gms:play-services-vision-image-label@{strictly 18.0.4}
-- Project 'app' depends onto com.google.android.gms:play-services-vision@{strictly 20.1.2}

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.

help me if possible.

gk...@google.com

unread,
Aug 31, 2020, 5:14:35 PM8/31/20
to Firebase Google Group

I'd like to make sure this isn't related to known issue: https://firebase.google.com/support/release-notes/android#bom_v25-8-0

Could you please add the following two additional dependencies, as described in the link above, and see if that fixes the build?
implementation 'com.google.android.gms:play-services-vision:20.1.1'
implementation 'com.google.android.gms:play-services-vision-common:19.1.1'
Reply all
Reply to author
Forward
0 new messages