BUILD FAILED in 1m 9s Finished with error: Gradle task assembleDebug failed with exit code 1
BUILD FAILED in 1m 9s Finished with error: Gradle task assembleDebug failed with exit code 1
失败:构建失败,出现异常。
- 出了什么问题:
任务“:app:processDebugGoogleServices”执行失败。
File google-services.json is missing. The Google Services Plugin cannot function without it.
Searched Location:
D:\flutter_projects\text_recognition\android\app\src\nullnull\google-services.json
D:\flutter_projects\text_recognition\android\app\src\debug\google-services.json
D:\flutter_projects\text_recognition\android\app\src\nullnullDebug\google-services.json
D:\flutter_projects\text_recognition\android\app\src\nullnull\debug\google-services.json
D:\flutter_projects\text_recognition\android\app\src\debug\nullnull\google-services.json
D:\flutter_projects\text_recognition\android\app\google-services.json
尝试:
运行 使用 --stacktrace 选项获取堆栈跟踪。 运行 使用 --info 或 --debug 选项以获得更多日志输出。 运行 使用 --scan 以获得完整的见解。
- 获取更多帮助
1 分钟 9 秒后构建失败
已完成并出现错误:Gradle 任务 assembleDebug 失败,退出代码为 1
这是我在连接到 firebase 和 运行 应用程序后遇到的错误。
首先根据 this tutorial 从 firebase 控制台获取您的 google-services.json
文件,然后您应该将 google-services.json
复制到此位置:
D:\flutter_projects\text_recognition\android\app\
失败:构建失败,出现异常。
- 出了什么问题: 任务“:app:processDebugGoogleServices”执行失败。
File google-services.json is missing. The Google Services Plugin cannot function without it. Searched Location: D:\flutter_projects\text_recognition\android\app\src\nullnull\google-services.json D:\flutter_projects\text_recognition\android\app\src\debug\google-services.json D:\flutter_projects\text_recognition\android\app\src\nullnullDebug\google-services.json D:\flutter_projects\text_recognition\android\app\src\nullnull\debug\google-services.json D:\flutter_projects\text_recognition\android\app\src\debug\nullnull\google-services.json D:\flutter_projects\text_recognition\android\app\google-services.json
尝试: 运行 使用 --stacktrace 选项获取堆栈跟踪。 运行 使用 --info 或 --debug 选项以获得更多日志输出。 运行 使用 --scan 以获得完整的见解。
- 获取更多帮助
1 分钟 9 秒后构建失败 已完成并出现错误:Gradle 任务 assembleDebug 失败,退出代码为 1
这是我在连接到 firebase 和 运行 应用程序后遇到的错误。
首先根据 this tutorial 从 firebase 控制台获取您的 google-services.json
文件,然后您应该将 google-services.json
复制到此位置:
D:\flutter_projects\text_recognition\android\app\