我已将google-services.json文件放置于以下路径:
然而,我仍然收到错误提示。
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:
F:\downloads\food_delivery_app-master\food_delivery_app-master\android\app\src\debug\google-services.json
F:\downloads\food_delivery_app-master\food_delivery_app-master\android\app\src\google-services.json
F:\downloads\food_delivery_app-master\food_delivery_app-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 25s
Exception: Gradle task assembleDebug failed with exit code 1
我查阅了所有发布的解决方案,但都没有起作用。我该怎么解决这个问题?请帮帮我,已经受困一段时间了。谢谢。
flutter clean
,还要检查 这个。 - Yeasin Sheikhgoogle-services.json
,而不是google-services .json
。 - Darja Orlovaapply plugin: 'com.google.gms.google-services'
。 - Suraj M