Flutter-Smile-Face-Detection
Flutter-Smile-Face-Detection copied to clipboard
google-services.json how solve this problem?
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ':app:processDebugGoogleServices'.
File google-services.json is missing. The Google Services Plugin cannot function without it. Searched Location:
/home/joker/Documentos/Hercules/000009/Flutter-Smile-Face-Detection-master/android/app/src/nullnull/debug/google-services.json /home/joker/Documentos/Hercules/000009/Flutter-Smile-Face-Detection-master/android/app/src/debug/nullnull/google-services.json /home/joker/Documentos/Hercules/000009/Flutter-Smile-Face-Detection-master/android/app/src/nullnull/google-services.json /home/joker/Documentos/Hercules/000009/Flutter-Smile-Face-Detection-master/android/app/src/debug/google-services.json /home/joker/Documentos/Hercules/000009/Flutter-Smile-Face-Detection-master/android/app/src/nullnullDebug/google-services.json /home/joker/Documentos/Hercules/000009/Flutter-Smile-Face-Detection-master/android/app/google-services.json
-
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. -
Get more help at https://help.gradle.org
BUILD FAILED in 3s
delete apply plugin: 'com.google.gms.google-services'
code from android/app/build.gradle
it will be run
I solved this issue by adding my google-services.json file to the app. You place it in android/app/google-services.json
.
You also have to update the name of the app so it matches that of the google-services file. Do this in android/app/build.gradle
at the line labeled applicationId
. (you need to do seperate setup for ios)
You get the google-services.json file from the firebase web console.