3

I tried to install "Recognize Text in Images with ML Kit on Android" then I'm running this app, I got this error:

com.google.firebase.codelab.mlkit W/System.err: com.google.firebase.ml.common.FirebaseMLException: Waiting for the text recognition model to be downloaded

I waited for 4 or 5 hours with no response.

It showed up on this line: error

To reproduce:

Follow the Recognize Text in Images Codelab or run the sample app code and clear your app's cache.

Pannag Sanketi
  • 1,372
  • 1
  • 10
  • 10

1 Answers1

2

This can happen if the storage on the device is not sufficient. Can you try clearing the data for Google Play Services from the device?

Post development, to avoid this problem in production, you can use this tag in your manifest:

<meta-data
    android:name="com.google.firebase.ml.vision.DEPENDENCIES"
    android:value="text" />

This will pre-download the recognition model upon app installation from Play Store.

Pannag Sanketi
  • 1,372
  • 1
  • 10
  • 10