play-services-plugins icon indicating copy to clipboard operation
play-services-plugins copied to clipboard

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

Open ChakritRakuang opened this issue 4 years ago • 10 comments

In project 'app' a resolved Google Play services library dependency depends on another at an exact version (e.g. "[19.0. 2]", 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:20.0.0 -> com.google.android.gms:play-services-vision-co mmon@[19.0.2], but play-services-vision-common version was 19.1.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-ml-vision@{strictly 24.1.0} -- Project 'app' depends onto com.google.android.gms:play-services-vision-common@{strictly 19.1.0} -- Project 'app' depends onto com.google.firebase:[email protected] -- 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.0.0}

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.

ChakritRakuang avatar Sep 12 '20 12:09 ChakritRakuang

Dependencyfailing: com.google.android.gms:play-services-vision:20.0.0 -> com.google.android.gms:play-services-vision-common@[19.0.2], but play-services-vision-common version was 19.1.0. while using firebase

In project 'app' a resolved Google Play services library dependency depends on another at an exact version (e.g. "[19.0. 2]", 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:20.0.0 -> com.google.android.gms:play-services-vision-co mmon@[19.0.2], but play-services-vision-common version was 19.1.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-ml-vision@{strictly 24.1.0} -- Project 'app' depends onto com.google.android.gms:play-services-vision-common@{strictly 19.1.0} -- Project 'app' depends onto com.google.firebase:[email protected] -- 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.0.0}

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. issue1

rohitghosal avatar Oct 06 '20 05:10 rohitghosal

In project 'app' a resolved Google Play services library dependency depends on another at an exact version (e.g. "[19.0. 2]", 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:20.0.0 -> com.google.android.gms:play-services-vision-co mmon@[19.0.2], but play-services-vision-common version was 19.1.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-ml-vision@{strictly 24.1.0} -- Project 'app' depends onto com.google.android.gms:play-services-vision-common@{strictly 19.1.0} -- Project 'app' depends onto com.google.firebase:firebase-bom@{strictly 25.12.0} -- Project 'app' depends onto com.google.firebase:[email protected] -- Project 'app' depends onto com.google.firebase:[email protected] -- 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.0.0}

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 = true }" to your bu ild.gradle file.

How we can solve this???

ghost avatar Oct 26 '20 10:10 ghost

Dependency failing: com.google.android.gms:play-services-vision:20.0.0 -> com.google.android.gms:play-services-vision-co mmon@[19.0.2], but play-services-vision-common version was 19.1.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-ml-vision@{strictly 24.1.0} -- Project 'app' depends on project 'firebase_ml_vision' which depends onto com.google.firebase:[email protected]. 0 -- Project 'app' depends onto com.google.android.gms:play-services-vision-common@{strictly 19.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.0.0}

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 = true }" to your bu ild.gradle file.

Getting this too. Any news on a solution? Kinda critical..

galloperx avatar Nov 11 '20 17:11 galloperx

There is a migration guide which explains how to switch to the new MLKit version of these libraries. There is also an issue with firebase-ml-vision 24.1.0, follow instructions on that page to mitigate if you cannot migrate to the new libraries.

If the problem persists, please provide a pointer to a GitHub project with these problems, a minimal repro project, or relevant build.gradle file contents.

caller9 avatar Nov 12 '20 14:11 caller9

Thanks for helping 😊

On Thu, 12 Nov, 2020, 20:00 Adam, [email protected] wrote:

There is a migration guide https://developers.google.com/ml-kit/migration which explains how to switch to the new MLKit version of these libraries. There is also an issue with firebase-ml-vision 24.1.0 https://firebase.google.com/support/release-notes/android#mlkit-vision_v24-1-0, follow instructions on that page to mitigate if you cannot migrate to the new libraries.

If the problem persists, please provide a pointer to a GitHub project with these problems, a minimal repro project, or relevant build.gradle file contents.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/google/play-services-plugins/issues/153#issuecomment-726112634, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQJZOU3ZLWOFZGLQP2A3RSDSPPWPJANCNFSM4RJOFQVQ .

rohitghosal avatar Nov 12 '20 14:11 rohitghosal

Thanks, but I've seen this guide too, sad to say it didn't really help to fix my problem. Thing is, this library is used in Flutter plugin officially published by the Firebase team (this one: https://pub.dev/packages/firebase_ml_vision) and while it works on its own, the version conflicts start when you try to have this Flutter plugin (which is using ml kit library) and other plugins (made by same team) like Firebase Admob plugin for Flutter in the same project. Time and time again it just perplexes me how such problematic lib versions even get into production.

galloperx avatar Nov 12 '20 15:11 galloperx

In case anyone having this issue in Flutter, here's what I did and worked

File android/app/build.gradle

dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" implementation 'com.android.support:multidex:1.0.3' implementation 'com.google.android.gms:play-services-vision:20.1.1' implementation 'com.google.android.gms:play-services-vision-common:19.1.1' implementation 'com.google.android.gms:play-services-vision-image-label:18.0.5' implementation "com.google.firebase:firebase-ml-vision:24.1.0" }

image

AseemWangoo avatar Nov 13 '20 02:11 AseemWangoo

In case anyone having this issue in Flutter, here's what I did and worked

File android/app/build.gradle

dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" implementation 'com.android.support:multidex:1.0.3' implementation 'com.google.android.gms:play-services-vision:20.1.1' implementation 'com.google.android.gms:play-services-vision-common:19.1.1' implementation 'com.google.android.gms:play-services-vision-image-label:18.0.5' implementation "com.google.firebase:firebase-ml-vision:24.1.0" }

image

@AseemWangoo it works here as well. Thanks a lot for sharing.

thanhbinh84 avatar Nov 26 '20 09:11 thanhbinh84

In case anyone having this issue in Flutter, here's what I did and worked

File android/app/build.gradle

dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" implementation 'com.android.support:multidex:1.0.3' implementation 'com.google.android.gms:play-services-vision:20.1.1' implementation 'com.google.android.gms:play-services-vision-common:19.1.1' implementation 'com.google.android.gms:play-services-vision-image-label:18.0.5' implementation "com.google.firebase:firebase-ml-vision:24.1.0" }

image

@AseemWangoo works fine (today 1 DEC 2020) with:

firebase_ml_vision: ^0.9.9 firebase_core: ^0.5.2+1 cloud_firestore: ^0.14.3+1 firebase_storage: ^5.1.0

packages in pubspec.yaml file just add the 4 last dependencies in gradle

rodi189 avatar Dec 01 '20 19:12 rodi189

implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" implementation 'com.android.support:multidex:1.0.3' implementation 'com.google.android.gms:play-services-vision:20.1.1' implementation 'com.google.android.gms:play-services-vision-common:19.1.1' implementation 'com.google.android.gms:play-services-vision-image-label:18.0.5' implementation "com.google.firebase:firebase-ml-vision:24.1.0"

not really helpful to me :/

umarKhan1 avatar Jun 27 '21 09:06 umarKhan1