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

flutter firebase
cloud firestore flutter
flutter web: firestore
missingpluginexception(no implementation found for method getinstalledmaps on channel map_launcher)
flutter firestore get document
missingpluginexception(no implementation found for method launch on channel flutter_webview_plugin
missingpluginexception flutter
flutter firestore transaction
Future<void> _getUserData() async {
  final database = Firestore.instance;
  try {
    FirebaseUser _currentUser = await FirebaseAuth.instance.currentUser();
    String authid =_currentUser.uid;
    String email = _currentUser.email;
    Map<String, String> userData = {
      'AuthUserId':'$authid',
      'Email':'$email',
      'FullName': '',
      'MobileNum': '',
      'Address': '',
      'City/Village': '',
      'District': '',
      'State': '',
      'PinCode': '',
    };
   database.collection('UserData').add(userData).catchError((e) {
     print(e);
    });
 } catch (e) {
    print(e);
 }
}
@override
void initState() {
    super.initState();
    _getUserData();
  }

"I am trying to insert the data into the cloud firestore and i have called this function in initState() but i ham getting error as i have mentioned above

Make sure you are using the latest cloud_firestore version. Then execute:

flutter clean
flutter packages get

MissingPluginException (MissingPluginException(No , I already made a -flutter clean -flutter packages get but the problem persists in all my projects Help me please. implementation found for method DocumentReference#setData on channel plugins.flutter.io/cloud_firestore)) # 1903. Closed. MissingPluginException (No implementation found for method (No implementation found for method DocumentReference#setData on channel plugins.flutter

I closed the IDE (Android Studio) and did flutter clean. After that I restarted the IDE and created a new AVD. The MissingPluginException was gone after that and I had the following error:

D8: Cannot fit requested classes in a single dex file

I fixed this adding multiDexEnabled true to the defaultConfig in /android/app/build.gradle

defaultConfig {
    ...
    multiDexEnabled true
}

I don't know if this is releated to your problem, but thats how I solved the error.

[firebase_database v0.3.1]: MissingPluginException(No , E/flutter ( 3705): [ERROR:topaz/lib/tonic/logging/dart_error.cc(16)] Unhandled Flutter (on Mac OS X 10.13.2 17C88, locale en-GB, channel alpha) • Flutter at for method Query#observe on channel plugins.flutter.io/firebase_database) Error: MissingPluginException(No implementation found for method� Here is the flutter doctor output [ ] Flutter (on Mac OS X 10.12.6 16G29, locale en-US, channel alpha) • Flutter at /Users/vskr/flutter • Framework revision

for my case, I performed steps as below:

flutter clean
flutter packages get

uninstall app

update: /android/app/build.gradle

defaultConfig {
    ...
    multiDexEnabled true
}

run again.

hope this helps

I/flutter (22027): MissingPluginException(No , I/flutter (22027): MissingPluginException(No implementation found for method DocumentReference#setData on channel plugins.flutter.io/cloud_firestore). 230 Views. 0. Votes. name Kendall gladys jacklyn� flutter cloud-firestore MissingPluginException Exception No implementation found for method DocumentReference#setData on channel plugins.flutter.io

MissingPluginException(No implementation found for method Query , I/flutter (22027): MissingPluginException(No implementation found for method DocumentReference#setData on channel plugins.flutter.io/cloud_firestore). Post author By Full Stack; Post date January 25, 2020 � No Comments on I/flutter� I&#39;m trying to get the documents directory but keep getting the following error: MissingPluginException(No implementation found for method

flutter cloud-firestore MissingPluginException Exception : Flutter, MissingPluginException(No implementation found for method Query# getDocuments on channel plugins.flutter.io/cloud_firestore). Help Request. Hey guys! [ ] Flutter (Channel master, v1.4.20-pre.2, on Mac OS X 10.14.4 18E226, locale zh-Hans-CN) [ ] Android toolchain - develop for Android devices (Android SDK version 28.0.3) [ ] iOS toolchain - develop for iOS devices (Xcode 10.2) [!]

Carbon add days to next monday, MissingPluginException(No implementation found for method DocumentReference#setData on channel plugins.flutter.io/cloud_firestore). E/ flutter (10137): #0� Teams. Q&A for Work. Stack Overflow for Teams is a private, secure spot for you and your coworkers to find and share information.

Comments
  • I have the latest cloud_firestrore and I had done the same as you mentioned but after updating the flutter it is happening before it is working fine
  • what flutter version are u using?
  • Flutter 1.12.13+hotfix.5 • channel stable • github.com/flutter/flutter.git Framework • revision 27321ebbad (7 weeks ago) • 2019-12-10 18:15:01 -0800 Engine • revision 2994f7e1e6 Tools • Dart 2.7.0
  • Did u close the ide?
  • @Bawantha add another question with your pubspec.yaml and explaination and add it here in the comment so I can check, also ur build.gradle