Linking App to MLKit
Last updated
Was this helpful?
Last updated
Was this helpful?
Create new project from
Click Android icon from console
Enter your package name
Download config file google-services.json
Move google-services.json
into the module (app-level) directory of your app
Add firebase sdk to your app gradle
Project-level build.gradle (<project>/build.gradle
):
classpath 'com.google.gms:googleservices:4.3.3'
App-level build.gradle (<project>/<app-module>/build.gradle
):
implementation 'com.google.firebase:firebase-ml-vision-face-model:19.0.0'
Run your app to verify installation
Configure your app to automatically download the ML model to the device after your app is installed from the Play Store. To do that add the following lines to AndroidManifest.xml
under application
tag (optional):
For other firebase libraries