【问题标题】:Flutter with firestore missing method颤振与firestore缺少方法
【发布时间】:2019-02-27 06:20:39
【问题描述】:
MissingPluginException(No implementation found for method DocumentReference#get on channel plugins.flutter.io/cloud_firestore)

你好,我在安卓设备模拟器上一直收到这个消息,用于所有带有颤振的 firestore 方法。 我遵循了安装说明(第一个 gradle 中的“gms...google services”和 app gradle 文件上的插件,+ app 文件夹中的 google services.json。

似乎我应该在 android 依赖项上添加 firestore api,但这不在官方安装指南中。

我的 pubspec.yaml :

environment:
  sdk: ">=2.0.0-dev.68.0 <3.0.0"

dependencies:
  flutter:
    sdk: flutter
  firebase_core: ^0.2.5
#  firebase_auth: ^0.5.20
  cloud_firestore: ^0.8.0
  rxdart: ^0.18.1

【问题讨论】:

  • 大新闻,似乎它实际上正在处理主要项目,但我在单元测试中运行它时遇到了这个错误......也许是一个需要报告的错误
  • 你可以试试 Firebase_core: any 因为最新版本的 Firebase 核心依赖不能正常工作。

标签: firebase flutter google-cloud-firestore


【解决方案1】:
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2018-01-21
  • 2020-11-29
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2020-07-23
相关资源
最近更新 更多