-
Notifications
You must be signed in to change notification settings - Fork 4k
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
🐛 [firebase_ml_vision] Can't find ml-vision-image-label-model that works with the latest plugin update #3995
Comments
So I decided to update the plugins one by one, to see which one was incompatible..... When using: If we upgrade from to It still works........ The problem happens when upgrading the firebase_core to: When upgrading the core from 0.5.0+1 to 0.5.1 it starts to give the error. We would expect to have to upgrade the image-label-model to the latest version as well from 20.0.1 to 20.0.2 but that doesn't fixes the issue. Actually no versions from 19-20 fixes this issue. So I had to downgrade the core to 0.5.0+1, keep using image-label-model 20.0.1 and it would work with the latest ml_vision plugin version. |
same getting this issue event sent after app closed: {id: 0, progressId: null, message: Running "flutter pub get" in barcode_pro_app...} FAILURE: Build failed with an exception.
Dependency failing: com.google.android.gms:play-services-vision:20.0.0 -> com.google.android.gms:play-services-vision-co The following dependencies are project dependencies that are direct or have transitive dependencies that lead to the art For extended debugging info execute Gradle from the command line with ./gradlew --info :app:assembleDebug to see the dep
BUILD FAILED in 12s using below: |
@leonardocustodio flutter doctor -v
Are there any specific steps to replicate the issue ? |
Hello @darshankawar, I didn't need to do anything to happen the issue. I only updated the plugin. But did you also add: On the app level build.gradle dependencies? Also I did not say on my comment but the problem in compiling is happening on Android, haven't tested with iOS yet. Also, here is my flutter doctor that I haven't posted before:
|
Hmmm on the example it is using version 17.0.2 ps.: I'm using the 20.0.1 instead of 17.0.2 because it was the version supported on the previous version by match making on: https://firebase.google.com/support/release-notes/android Still even with the 17.0.2 on the example it does not work. |
This suddenly also popped up on my end after updating |
@darshankawar pls check it its backward compatible break |
@darshankawar i just donwlaoded FirebaseExtended project and build the example of firebase_ml_vision\example same issue you can try it. Microsoft Windows [Version 10.0.18363.1139] C:\Users\kotai\AndroidStudioProjects\flutterfire\packages\firebase_ml_vision\example>flutter build apk https://flutter.dev/go/android-project-migration to migrate your project. You are building a fat APK that includes binaries for android-arm, android-arm64, android-x64. FAILURE: Build failed with an exception.
Dependency failing: com.google.android.gms:play-services-vision:20.0.0 -> com.google.android.gms:play-services-vision-co The following dependencies are project dependencies that are direct or have transitive dependencies that lead to the art For extended debugging info execute Gradle from the command line with ./gradlew --info :app:assembleDebug to see the dep
BUILD FAILED in 44s |
We need flutter to solve it, flutter example also failing so better to wait
for flutter to provide a fix
…On Sun, Nov 1, 2020, 06:15 Ahyar Aulia Yasa ***@***.***> wrote:
I solved it this way.
implementation 'com.google.android.gms:play-services-vision:20.1.2'
implementation 'com.google.android.gms:play-services-vision-common:19.1.2'
implementation
'com.google.android.gms:play-services-vision-image-label:18.1.0'
[image: Captura de Pantalla 2020-10-31 a la(s) 10 48 55 p m]
<https://user-images.githubusercontent.com/19338050/97794710-64e56b80-1bcb-11eb-9d31-415d1587e4cb.png>
Somehow this solved my issue, thank you
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#3995 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALJEI6RMQC5W4XI6OFURSC3SNTOEJANCNFSM4TEHQGQQ>
.
|
Was able to replicate this issue using plugin's official example on latest stable. Was able to compile and run the example app on iOS though. (Tried on iphone SE simulator, iOS 14). console log
flutter doctor -v
|
is there any fix for this issue? the solution that worked for @Jartz didn't work for me |
After hours of debugging I came up with this fix:
it's basically what google recommends here: https://firebase.google.com/support/release-notes/android |
Is there any solution to this problem? None of the solutions worked for me |
Hi, finaly today I make my app works. Today (nov 6) the team released a new version 0.9.9 in pub.dev. Also app/build.gradle is:
thank you @comyuno , also your comment guided me to the right configuration in my gradle file. |
I managed to make it work, but I had to add to the app/build.grade P.S: add |
This should do the trick and also ensures vision still works as expected.
|
@darshankawar pls update firebase ml example so we can do the same and no need to guess |
fix if you using barcode:
|
now we have new big issue, follow on link |
Not even the downgraded version is working anymore. I've downgrade everything back to the versions of the beginning and removed all extra dependencies that I've added in effort to work with ml_vision. And I'm also getting the "java.lang.IllegalArgumentException: Service not registered: lx@226fed8" error. And I'm pretty sure I'm not using a cached version since I did a flutter clean and deleted every packages before getting them back. I think this error is not related to the ml_vision itself but to some kind of dependency that is being pulled regardless of the pubspec version. Probably a changed that was made in the last few days since this error was not happening a few days ago with the versions on the beginning of the report. And probably related to this: firebase/firebase-android-sdk#1662 Edit: Stopped happening when I used another emulator with the downgraded version |
I am facing the same problem.I want to use image labelling and face detection. |
Hopefully more details will help this be fixed... (Thank you @comyuno for what I think has finally fixed my issue.) I have tried to use Before I attempt to update again,
Because Firebase plugins are the only ones (so far) that have caused issues with
Now with my fixed versions for the two plugins that I have in pubspec.yaml, I ran
Looking back, I now see that
I don't like that I'm in a place where Alright, I updated my pubspec.yaml to the following:
I can Now, let's see if I can update and get it working with the newest version of the two Firebase plugins that we are using.
With the 3 fixed versions of the Firebase plugin deps in my pubspec.yaml and the updated deps in my build.gradle, I can now I hope this is helpful to the Firebase plugin authors (and anyone that was stuck like I was). It feels like there should have been somethign in the changlog for firebase_ml_vision (somewhere between versions 0.9.7 and 0.9.10) explaining what changes are required in the build.gradle file. (I always run |
Hello,
After the last update of firebase plugins. I can't find any version of ml-vision-image-label-model that will work.
Here is the log output:
Before this last update I was using the 20.0.1 model:
api 'com.google.firebase:firebase-ml-vision-image-label-model:20.0.1'
With this plugin versions:
And it was working fine. After updating to:
I can't find any version that will work anymore..... I tried the latest 20.0.2 and also all 19+ versions....
Regards,
Leonardo
The text was updated successfully, but these errors were encountered: