Flutter-Smile-Face-Detection icon indicating copy to clipboard operation
Flutter-Smile-Face-Detection copied to clipboard

google-services.json how solve this problem?

Open sgsilva opened this issue 5 years ago • 2 comments

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

sgsilva avatar Jan 02 '20 17:01 sgsilva

delete apply plugin: 'com.google.gms.google-services' code from android/app/build.gradle it will be run

egazi avatar Jan 23 '20 10:01 egazi

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.

zacel avatar Jul 19 '20 18:07 zacel