flutter_medical icon indicating copy to clipboard operation
flutter_medical copied to clipboard

Cant run the app as google-services.json is missing

Open rahul-badgujar opened this issue 3 years ago • 2 comments

  • 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 1m 44s Running "flutter pub get" in flutter_medical... Launching lib\main.dart on Android SDK built for x86 64 in debug mode... lib\main.dart:1 Parameter format not correct -

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: D:\Programming Essentials\Open Source\flutter_medical\android\app\src\nullnull\google-services.json D:\Programming Essentials\Open Source\flutter_medical\android\app\src\debug\google-services.json D:\Programming Essentials\Open Source\flutter_medical\android\app\src\nullnullDebug\google-services.json D:\Programming Essentials\Open Source\flutter_medical\android\app\src\nullnull\debug\google-services.json D:\Programming Essentials\Open Source\flutter_medical\android\app\src\debug\nullnull\google-services.json D:\Programming Essentials\Open Source\flutter_medical\android\app\google-services.json Exception: Gradle task assembleDebug failed with exit code 1 Exited (sigterm)

rahul-badgujar avatar Jan 03 '21 16:01 rahul-badgujar

You need to connect it with firebase console. go to console.girebase

Adejoh-godwin avatar Feb 02 '21 16:02 Adejoh-godwin

To add to @Adejoh-godwin 's answer. Go to the firebase console. Create a new app there. Then connect it with android app using your app's applicationId download the google-serices.json file and place it in your app-level directory Now you are good to go

saad0259 avatar Oct 19 '21 13:10 saad0259