play-services-plugins
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.
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.
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.
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???
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..
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.
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 .
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.
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" }
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" }
@AseemWangoo it works here as well. Thanks a lot for sharing.
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" }
@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
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 :/