Android Flatter中firebase_消息插件出错

Android Flatter中firebase_消息插件出错,android,firebase,flutter,Android,Firebase,Flutter,失败:生成失败,出现异常 出了什么问题: 任务的执行失败:firebase\u消息:ProcessDebuggGoogleServices' 缺少文件google-services.json。没有它,谷歌服务插件就无法运行。 搜索位置: /Users/macbookair/flatter/.pub cache/hosted/pub.dartlang.org/firebase_messaging-5.1.6/android/src/nullnull/google-services.json /U

失败:生成失败,出现异常

  • 出了什么问题: 任务
    的执行失败:firebase\u消息:ProcessDebuggGoogleServices'

    缺少文件google-services.json。没有它,谷歌服务插件就无法运行。 搜索位置: /Users/macbookair/flatter/.pub cache/hosted/pub.dartlang.org/firebase_messaging-5.1.6/android/src/nullnull/google-services.json /Users/macbookair/flatter/.pub cache/hosted/pub.dartlang.org/firebase_messaging-5.1.6/android/src/debug/google-services.json /Users/macbookair/flatter/.pub cache/hosted/pub.dartlang.org/firebase_messaging-5.1.6/android/src/nulldebug/google-services.json /Users/macbookair/flatter/.pub cache/hosted/pub.dartlang.org/firebase_messaging-5.1.6/android/src/nullnull/debug/google-services.json /Users/macbookair/flatter/.pub cache/hosted/pub.dartlang.org/firebase_messaging-5.1.6/android/src/debug/nullnull/google-services.json /Users/macbookair/flatter/.pub cache/hosted/pub.dartlang.org/firebase_messaging-5.1.6/android/google-services.json

  • 尝试: 使用--stacktrace选项运行以获取堆栈跟踪。使用
    --info
    --debug
    选项运行以获得更多日志输出。使用
    --scan
    运行以获得完整的洞察力

  • 得到更多的帮助


23sGradle任务中的构建失败
assembleDebug
失败,退出代码为1

在android/app文件夹中添加了google-services.json,仍然在flattersrikanth中显示json文件未找到错误,如果是,请在此处写下问题的决定。谢谢