0

I want to add google machine language kit to my flutter project, when i do try adding the google ml kit this error appears, what could be the problem and how can i fix it? i tried closing editor/ doing a flutter clean/ and closing my app i have the latest firebase and firestore.

my initial problem was I used the image label kit at the start, when i tried to do so this appeared

MissingPluginException(No implementation found for method vision#startImageLabelDetector on channel google_mlkit_image_labeler)

so I tried closing the editor and doing a

flutter clean

it did nothing but bring up the other problem which is

FirebaseException ([cloud_firestore/unavailable] The service is currently unavailable. This is a most likely a transient condition and may be corrected by retrying with a backoff.)

and waojd
  • 35
  • 5

1 Answers1

0

The error that you have encountered initially from plugins used are usually caused by either outdated plugin versions or the downloaded plugin not building properly.
Try to run these steps serially then close your code editor and check again:

flutter clean
flutter pub get
flutter run

When flutter clean is executed and then flutter pub get it will help generate build files again. You can also try to update the plugin version and check.
Find the example app here and similar examples as below:

Vaidehi Jamankar
  • 1,232
  • 1
  • 2
  • 10
  • didn't work, ps the first link was posted by me. I have no clue why this is happening or how to fix it. I also did post the issue on github, but no one replied. – and waojd Jan 07 '23 at 23:32