title: Execution failed for task ':app:mergeDexDebug'. Firestore | Flutter
body: <p>Trying to use Firestore in my project. My project is a brand new one, but having problems running the app on my device without getting an error:
  <strong>Execution failed for task ':app:mergeDexDebug'.</strong></p>
  
  <p>My app is using AndroidX. I've added my google-services.json file, followed the steps etc.</p>
  
  <p>Yaml file:</p>
  
  <pre><code>dependencies:
    cloud_firestore: ^0.13.3
  </code></pre>
  
  <p>android/build.gradle:</p>
  
  <pre><code>com.google.gms:google-services:4.3.3
  </code></pre>
  
  <p>Full error:</p>
  
  <blockquote>
    <p>FAILURE: Build failed with an exception.</p>
    
    <p>What went wrong:
        Execution failed for task ':app:mergeDexDebug'.
    A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
    com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives: 
         The number of method references in a .dex file cannot exceed 64K.
         Learn how to resolve this issue at <a href="https://developer.android.com/tools/building/multidex.html" rel="noreferrer">https://developer.android.com/tools/building/multidex.html</a></p>
  </blockquote>