【问题标题】:Flutter emulator crashes on first run after firebase install安装 firebase 后,Flutter 模拟器在首次运行时崩溃
【发布时间】:2019-10-02 10:14:29
【问题描述】:

我遵循了一个教程,该教程描述了在 Windows PC 上使用 Android Studio 在我的 Flutter 应用上安装 firebase_auth 的过程。根据 google firebase 说明更改代码并点击运行后,应用程序崩溃并出现以下错误:

Error screenshot

我已经搜索了无数线程来寻找解决方案,似乎没有人遇到过这个问题。

【问题讨论】:

  • 请不要显示文字截图。而是将文本复制到问题中,以便于阅读和搜索。

标签: android firebase flutter firebase-authentication


【解决方案1】:

您是否将配置添加到 gradle 中?

dependencies {
  // Add the google services classpath
  classpath 'com.google.gms:google-services:4.3.0'
}

apply plugin: 'com.google.gms.google-services'

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2019-11-06
    • 2020-07-22
    • 1970-01-01
    • 2010-11-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多