title: Firebase android: Multidex error after updating dependencies
body: <p><strong>These are my current dependencies and they work fine:</strong></p>
  
  <p>These dependencies in my build.gradle (app):</p>
  
  <pre><code>compile 'com.google.firebase:firebase-database:11.4.2'
  compile 'com.google.firebase:firebase-auth:11.4.2'
  compile 'com.google.firebase:firebase-ui-database:3.1.0'
  compile 'com.google.firebase:firebase-storage:11.4.2'
  </code></pre>
  
  <p>And this dependency in my build.gradle (project_name):</p>
  
  <pre><code>classpath 'com.google.gms:google-services:3.2.0'
  </code></pre>
  
  <p><strong>But when I update to new versions of firebase I get multidex error:</strong></p>
  
  <p>These dependencies in my build.gradle (app):</p>
  
  <pre><code>compile 'com.google.firebase:firebase-core:16.0.1' 
  compile 'com.google.firebase:firebase-database:16.0.1'
  compile 'com.google.firebase:firebase-auth:16.0.2'
  compile 'com.google.firebase:firebase-ui-database:4.1.0'
  compile 'com.google.firebase:firebase-storage:16.0.1'
  </code></pre>
  
  <p>And this dependency in my build.gradle (project_name):</p>
  
  <pre><code>classpath 'com.google.gms:google-services:4.0.1'
  </code></pre>
  
  <p><strong>Problem</strong></p>
  
  <p>So my problem is getting multi dex error when trying to build my project with the updated dependecies.</p>
  
  <p>I have <code>android studio (3.1.3)</code>.</p>
  
  <p>Why is it happening?</p>
  
  <p>Thanks.</p>