【问题标题】:Getting errors using Auth and firestore dependencies使用 Auth 和 firestore 依赖项获取错误
【发布时间】:2019-07-02 05:02:01
【问题描述】:

我开始了一个新的 Flutter 项目,当我在 pubspec.yaml 中为 Auth 和 Firestore 使用一个或两个依赖项时,我得到了各种各样的错误。这些来自 Flutter Packages 网站:

依赖: 扑: sdk:颤动

firebase_auth:^0.8.0+1 cloud_firestore: ^0.9.0

我的第二个问题是,如果项目需要 Auth 和 Firestore,我如何引用这两个依赖项? 谢谢!

【问题讨论】:

    标签: firebase flutter firebase-authentication google-cloud-firestore flutter-dependencies


    【解决方案1】:

    当我在处理我的最新项目时也发生了这种情况,我最终使用了这样的旧版本:

      firebase_auth: ^0.6.6
      cloud_firestore: ^0.8.2+3
    

    希望他们尽快解决冲突,我们可以使用最新版本。

    【讨论】:

    • 是的,当我使用旧版本时,它会部分工作,因为有时我无法在同一个项目中使用 Auth 和 Firestore 插件。我也遇到很多依赖错误。
    • 对我来说,没有必要使用旧版本。我刚刚在 android studio 中打开了应用程序的 android 文件夹,然后单击 Refactor -> migrate to androidX 然后 Do refactor。它奏效了
    猜你喜欢
    • 2019-03-31
    • 1970-01-01
    • 2019-01-31
    • 2018-07-20
    • 1970-01-01
    • 2020-05-18
    • 1970-01-01
    • 1970-01-01
    • 2018-06-06
    相关资源
    最近更新 更多