flutter cloud-firestore MissingPluginException Exception

461 views
Skip to first unread message

Ahmed Mohammedali

unread,
Dec 13, 2019, 12:53:15 PM12/13/19
to Flutter Development (flutter-dev)

cannot use cloud firestore in flutter (android and IOS) ... I get this Exception:

E/flutter (10137): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception:

MissingPluginException(No implementation found for method DocumentReference#setData on channel plugins.flutter.io/cloud_firestore)

E/flutter (10137): #0 MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:319:7)

E/flutter (10137): E/flutter (10137): #1 DocumentReference.setData (package:cloud_firestore/src/document_reference.dart:51:30)

E/flutter (10137): #2 _MyHomePageState.build. (package:firestoretest/main.dart:41:16)



note:


This is my pubspec.yaml file:

cloud_firestore: ^0.13.0+1

collection: ^1.14.11

firebase_core: ^0.4.3+1


I configured firebase properly and it is connected as shown in firebase console .. and able to use firebase real-time database without problems. Of course I cleaned and restarted the app many times.

Reply all
Reply to author
Forward
0 new messages