title: Flutter Firestore Error: MissingPluginException(No implementation found for method DocumentReference#updateData
body: <p>I am trying to update a document and keep getting this error:</p>
  <p><code>ERROR:flutter/lib/ui/ui_dart_state.cc(166)] Unhandled Exception: MissingPluginException(No implementation found for method DocumentReference#updateData on channel plugins.flutter.io/cloud_firestore</code></p>
  <p>This is what I am trying to do:</p>
  <pre><code>Firestore.instance.collection('myCollection').document(documentID).updateData({&quot;fieldName&quot;: FieldValue.arrayUnion(newValue)});
  </code></pre>
  <p>I am using this versions of Firebase and Firestore</p>
  <pre><code>cloud_firestore: ^0.13.7
  firebase_storage: ^3.1.6
  </code></pre>
  <p>I tried running <code>flutter clean</code> and <code>flutter packages get</code> as suggested here: <a href="https://stackoverflow.com/questions/59913165/i-flutter-22027-missingpluginexceptionno-implementation-found-for-method-doc">I/flutter (22027): MissingPluginException(No implementation found for method DocumentReference#setData on channel plugins.flutter.io/cloud_firestore)</a>. I even tried adding <code>multiDexEnabled true</code> to my build.gradle file, as suggested in the same post; none of it worked.</p>
  <p>I noticed that my build.gradle file has this flutter versions:</p>
  <pre><code>def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
  if (flutterVersionCode == null) {
      flutterVersionCode = '1'
  }
  
  def flutterVersionName = localProperties.getProperty('flutter.versionName')
  if (flutterVersionName == null) {
      flutterVersionName = '1.0'
  }
  </code></pre>
  <p>(Don't know if that might have anything to do with the problem)</p>
  <p>Please help!</p>
  <p>Thanks.</p>