【问题标题】:How to use firebase with flutter如何在颤振中使用 Firebase
【发布时间】:2022-11-12 16:17:49
【问题描述】:

我是 Flutter 的初学者,我想在我的 Flutter 应用程序中使用 firebase,我在 chrome 上运行我的应用程序,因为模拟器不起作用,我已经配置了 build.gradle 文件和 pubspec.yaml,当我运行我的应用程序我有一个错误说:

/C:/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core-1.24.0/lib/src/firebase_app.dart:18:25: Error: Member not found: 'FirebaseAppPlatform.verifyExtends'. 
    FirebaseAppPlatform.verifyExtends(_delegate);
                        ^^^^^^^^^^^^^
Waiting for connection from debug service on Chrome...            154.8s
Failed to compile application.

【问题讨论】:

    标签: flutter firebase dart


    【解决方案1】:

    尝试这个

    flutter pub upgrade --major-versions

    【讨论】:

    • 请描述为什么这有效
    【解决方案2】:

    现在使用这个版本:

      firebase_analytics:
      firebase_auth: 
      firebase_core: ^1.24.0
      cloud_firestore: 
      cloud_functions: 
      firebase_core_platform_interface: 4.5.1
    
    

    【讨论】:

      猜你喜欢
      • 2019-06-15
      • 2020-03-15
      • 1970-01-01
      • 1970-01-01
      • 2019-06-11
      • 2020-02-16
      • 2021-06-12
      • 2021-11-26
      • 2020-11-09
      相关资源
      最近更新 更多