firebase-ml-vision 24.1.0 isn't compatible with google-service plugin: 4.3.3
See original GitHub issue[READ] Step 1: Are you in the right place?
Issues filed here should be about bugs in the code in this repository. If you have a general question, need help debugging, or fall into some other category use one of these other channels:
- For general technical questions, post a question on StackOverflow with the firebase tag.
- For general Firebase discussion, use the firebase-talk google group.
- For help troubleshooting your application that does not fall under one of the above categories, reach out to the personalized Firebase support channel.
[REQUIRED] Step 2: Describe your environment
- Android Studio version:4.0.1
- Firebase Component: ML(Vision)
- Component version:24.1.0
[REQUIRED] Step 3: Describe the problem
Steps to reproduce:
When I use the latest version of firebase-ml-vision which is 24.1.0, the google service plugin (com.google.gms:google-services:4.3.3) isn’t compatible with it. It display some error in gradle console
such as
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.
Relevant Code:
in root build.gradle
dependencies {
...
classpath "com.google.gms:google-services:4.3.3"
}
in app/build.gradle
dependencies {
...
implementation "com.google.firebase:firebase-ml-vision:24.1.0"
}
The error stacktrace is below:
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-face-contour-internal@{strictly 16.0.0}
-- Project 'app' depends onto com.google.firebase:firebase-ml-vision-face-model@20.0.2
-- Project 'app' depends onto com.google.android.gms:play-services-vision-common@{strictly 19.1.0}
-- Project 'app' depends onto com.google.firebase:firebase-ml-vision-face-model@{strictly 20.0.2}
-- Project 'app' depends onto com.google.firebase:firebase-ml-vision@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.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.
FYI
Even if did the googleServices { disableVersionCheck = false }
to ignore the version check, the project still won’t be compiled.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:8
- Comments:11 (1 by maintainers)
Top Results From Across the Web
Add Firebase to your Android project
Add the dependency for the Google services Gradle plugin ... By using the Firebase Android BoM, your app will always use compatible versions...
Read more >gradle build failed when adding firebase ML vision
This error message came from the google-services Gradle plugin, report issues at https:// github.com/google/play-services-plugins and disable by ...
Read more >Dependencies Problem - Google Groups
to Firebase Google Group. When I use :- implementation 'com.google.firebase:firebase-ml-vision:24.1.0'. then it shows the following error:-.
Read more >Migrating for Android | ML Kit - Google Developers
Barcode scanning, com.google.firebase:firebase-ml-vision:24.0.1, com.google.android.gms:play-services-mlkit-barcode-scanning:18.1.0.
Read more >Fail to update to google services gradle plugin 3.3.0 in ...
android.build.api.attributes.BuildTypeAttr 'debug' and found compatible value 'debug'. - Found com.android.build.api.attributes ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@underwindfall Try adding the following dependency
The library version sometimes makes my head lid open. I think about the version every time, what is a good way, I have a lot of work, so I will look for it next time😫
I was searching to add TensorFlow from existing face recognition I searched far and came this far.
And the method I solved is below
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-face-contour-internal:16.0.2” implementation ‘com.google.android.gms:play-services-vision-image-label:18.0.5’ implementation ‘com.google.firebase:firebase-ml-vision:24.1.0’ implementation ‘com.google.firebase:firebase-ml-vision-face-model:20.0.2’ implementation ‘com.google.firebase:firebase-ml-model-interpreter:22.0.4’ implementation ‘org.tensorflow:tensorflow-lite:2.0.0’