Search code examples
androidfirebasefirebase-mlkit

Gradle sync fails when trying to add firebase ml vision image label model


Gradle sync fails when trying to add image label model or tensorflow with the following message:

Failed to resolve: com.google.firebase:firebase-ml-vision-image-label-model:16.0.0  
Failed to resolve: com.google.firebase:firebase-ml-tensorflow:16.0.0    

Anyone know why this is happening?

ML Vision for text extraction works fine:

com.google.firebase:firebase-ml-vision:16.0.0

Using AS 3.2 Canary 15 with android gradle plugin 3.2.0-alpha15 and google play services version 3.2.1.


Solution

  • Change your library with below library:

    com.google.firebase:firebase-ml-vision-image-label-model:15.0.0
    

    Firebase Android Release Notes