-
Notifications
You must be signed in to change notification settings - Fork 606
firebase-ml-vision 24.1.0 isn't compatible with google-service plugin: 4.3.3 #1904
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight. |
Also experiencing this, any workaround?? |
I have encountered the same issue with |
Try adding this in dependencies it worked for me:
https://firebase.google.com/support/release-notes/android#bom_v25-8-0 |
I have the same issue. Only working with:
And Google Play Services version:
|
Hi @underwindfall the latest release of ml-related SDKs have some known issues with their dependencies. Take a look at https://firebase.google.com/support/release-notes/android#mlkit-self-serve-fixes for workarounds. Do they fix your issue? |
@rlazo Thx for the response, however still doesn't work. Do you have any ideas why cause this issue ? dependencies{
......
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.firebase:firebase-ml-vision:24.1.0"
implementation "com.google.firebase:firebase-ml-vision-face-model:20.0.2"
} and the stacktrace associated it: 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.1.
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@16.0.2
-- 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.1}
-- Project 'app' depends onto com.google.android.gms:play-services-vision-face-contour-internal@{strictly 16.0.2}
-- Project 'app' depends onto com.google.firebase:firebase-ml-vision-face-model@{strictly 20.0.2}
-- Project 'app' depends onto com.google.android.gms:play-services-vision@20.1.1
-- Project 'app' depends onto com.google.android.gms:play-services-vision-common@19.1.1
-- 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.1.1}
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. |
@underwindfall Try adding the following dependency
|
Result@rlazo Thx for sharing this information. Finally the project can compile like a charm. I write all the consequences and necessary steps as below for anyone occurs the same issue like me. Consequence after upgrade latest versionHowever all the methods to do the face detection work I try to use such as FirebaseVisionFaceDetectorOptions.Builder()
.setPerformanceMode(FirebaseVisionFaceDetectorOptions.ACCURATE)
.setLandmarkMode(FirebaseVisionFaceDetectorOptions.ALL_LANDMARKS)
.setClassificationMode(FirebaseVisionFaceDetectorOptions.ALL_CLASSIFICATIONS) are marked as Deprecated. The reason whyThe reason this firebase lib deprecated I think is the screenshot below (where I found here) What need to do the migrationJust follow the doc ML KIT. |
Great summary @underwindfall !! Thanks for going the extra mile and add it to the issue. |
The library version sometimes makes my head lid open. I was searching to add TensorFlow from existing face recognition And the method I solved is below implementation 'com.google.android.gms:play-services-vision:20.1.1' |
[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:
with the firebase tag.
google group.
of the above categories, reach out to the personalized
Firebase support channel.
[REQUIRED] Step 2: Describe your environment
[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 asRelevant Code:
in root
build.gradle
in
app/build.gradle
The error stacktrace is below:
FYI
Even if did the
googleServices { disableVersionCheck = false }
to ignore the version check, the project still won't be compiled.The text was updated successfully, but these errors were encountered: