title: While running react-native app shows :app:transformClassesWithMultidexlistForDebug'
body: <p>I have a react native app where all the dependencies were working properly but now when i'm trying to run the app,it's giving me this error 
  <code>com.android.build.api.transform.TransformException: Error while generating the main dex list.</code> I have been searching for long time and found nothing useful.</p>
  
  <p>Here's my <code>AndroidManifest</code>file: </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
      &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
          xmlns:tools="http://schemas.android.com/tools"
          package="com.movit_driver1"&gt;
  
          &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
          &lt;uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/&gt;
          &lt;uses-permission android:name="android.permission.CAMERA" /&gt;
          &lt;uses-permission android:name="android.permission.WRITE_INTERNAL_STORAGE"/&gt;
          &lt;uses-permission android:name="android.permission.BLUETOOTH"/&gt;
          &lt;uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/&gt;
          &lt;uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/&gt;
  
          &lt;application
            android:name=".MainApplication"
            android:label="@string/app_name"
            android:icon="@mipmap/ic_launcher"
            android:allowBackup="false"
            android:theme="@style/AppTheme"
            tools:replace="android:appComponentFactory"
            android:appComponentFactory="whateverString"&gt;
            
            &lt;activity
              android:name=".MainActivity"
              android:label="@string/app_name"
              android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
              android:windowSoftInputMode="adjustResize"&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.MAIN" /&gt;
                  &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
              &lt;/intent-filter&gt;
            &lt;/activity&gt;
            &lt;activity android:name="com.facebook.react.devsupport.DevSettingsActivity" /&gt;
            &lt;meta-data
              android:name="com.google.android.geo.API_KEY"
              android:value="myapikey"/&gt;
            &lt;service android:name="io.invertase.firebase.messaging.RNFirebaseMessagingService"&gt;
            &lt;intent-filter&gt;
              &lt;action android:name="com.google.firebase.MESSAGING_EVENT" /&gt;
            &lt;/intent-filter&gt;
            &lt;/service&gt;
            &lt;service android:name="io.invertase.firebase.messaging.RNFirebaseInstanceIdService"&gt;
            &lt;intent-filter&gt;
              &lt;action android:name="com.google.firebase.INSTANCE_ID_EVENT"/&gt;
            &lt;/intent-filter&gt;
            &lt;/service&gt;
  
            &lt;meta-data
              android:name="com.google.firebase.messaging.default_notification_icon"
              android:resource="@drawable/ic_launcher" /&gt;
            &lt;meta-data
              android:name="com.google.firebase.messaging.default_notification_color"
              android:resource="@color/notificationColor" /&gt;
  
  
            &lt;meta-data
              android:name="com.google.firebase.messaging.default_notification_channel_id"
              android:value="@string/default_notification_channel_id"/&gt;
  
              &lt;receiver android:name="io.invertase.firebase.notifications.RNFirebaseNotificationReceiver"/&gt;
            &lt;receiver android:enabled="true" android:exported="true"  android:name="io.invertase.firebase.notifications.RNFirebaseNotificationsRebootReceiver"&gt;
              &lt;intent-filter&gt;
                &lt;action android:name="android.intent.action.BOOT_COMPLETED"/&gt;
                &lt;action android:name="android.intent.action.QUICKBOOT_POWERON"/&gt;
                &lt;action android:name="com.htc.intent.action.QUICKBOOT_POWERON"/&gt;
                &lt;category android:name="android.intent.category.DEFAULT" /&gt;
              &lt;/intent-filter&gt;
            &lt;/receiver&gt;
              
          &lt;/application&gt;
  
      &lt;/manifest&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Here's my android <code>build gradle</code>:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>        buildscript {
          ext {
              buildToolsVersion = "28.0.3"
              minSdkVersion = 16
              compileSdkVersion = 27
              targetSdkVersion = 26
              supportLibVersion = "27.1.1"
              multiDexEnabled = true
              googlePlayServicesVersion = "+" // default: "+"
              firebaseVersion = "+"
          }
          repositories {
              google()
              jcenter()
          }
          dependencies {
              classpath 'com.android.tools.build:gradle:3.2.0'
              classpath 'com.google.gms:google-services:4.2.0'
  
          }
      }
  
      task wrapper(type: Wrapper) {
          gradleVersion = '4.6'
          distributionUrl = distributionUrl.replace("bin", "all")
      }
  
      subprojects {
          project.configurations.all {
              resolutionStrategy.eachDependency { details -&gt;
                  if (details.requested.group == 'com.android.support'
                          &amp;&amp; !details.requested.name.contains('multidex') ) {
                      details.useVersion "28.0.0"
                  }
              }
          }
          afterEvaluate {
              android {
                  compileSdkVersion 28
                  buildToolsVersion "28.0.3"
  
                  defaultConfig {
                      targetSdkVersion 28
                  }
              }
          }
      }</code></pre>
  </div>
  </div>
  </p>
  
  <p>and finally my app <code>build gradle</code>:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>  android {
          compileSdkVersion rootProject.ext.compileSdkVersion
          buildToolsVersion '28.0.3'
  
          defaultConfig {
              applicationId "com.movit_driver1"
              minSdkVersion rootProject.ext.minSdkVersion
              targetSdkVersion rootProject.ext.targetSdkVersion
              versionCode 1
              versionName "1.0"
              multiDexEnabled true
              ndk {
                  abiFilters "armeabi-v7a", "x86"
              }
          }
           signingConfigs {
              release {
                  if (project.hasProperty('MYAPP_RELEASE_STORE_FILE')) {
                      storeFile file(MYAPP_RELEASE_STORE_FILE)
                      storePassword MYAPP_RELEASE_STORE_PASSWORD
                      keyAlias MYAPP_RELEASE_KEY_ALIAS
                      keyPassword MYAPP_RELEASE_KEY_PASSWORD
                  }
              }
          }
          splits {
              abi {
                  reset()
                  enable enableSeparateBuildPerCPUArchitecture
                  universalApk false 
                  include "armeabi-v7a", "x86"
              }
          }
          buildTypes {
              release {
                  minifyEnabled enableProguardInReleaseBuilds
                  proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
                  signingConfig signingConfigs.release
              }
          }
          applicationVariants.all { variant -&gt;
              variant.outputs.each { output -&gt;
                  def versionCodes = ["armeabi-v7a":1, "x86":2]
                  def abi = output.getFilter(OutputFile.ABI)
                  if (abi != null) { 
                      output.versionCodeOverride =
                              versionCodes.get(abi) * 1048576 + defaultConfig.versionCode
                  }
              }
          }
      }
  
      dependencies {
          compile project(':rn-fetch-blob')
          compile project(':react-native-vector-icons')
          compile project(':react-native-maps')
          compile project(':react-native-image-picker')
          compile project(':react-native-firebase')
          compile project(':react-native-document-picker')
          compile project(':react-native-device-info')
          implementation 'com.google.firebase:firebase-core:+'
          implementation "com.google.firebase:firebase-firestore:+"
          implementation "com.google.firebase:firebase-messaging:+"
          implementation "com.android.support:multidex:1.0.2"
          implementation fileTree(dir: "libs", include: ["*.jar"])
          implementation "com.facebook.react:react-native:+" 
          implementation 'com.google.android.gms:play-services-base:+'
          implementation 'com.google.android.gms:play-services-maps:+'
          implementation 'com.android.support:appcompat-v7:+'
          implementation 'com.android.support:design:+'
      }
  
      task copyDownloadableDepsToLibs(type: Copy) {
          from configurations.compile
          into 'libs'
      }</code></pre>
  </div>
  </div>
  </p>
  
  <p>When i'm trying to run the project,its showing the error.So,do i have to migrate the project to androidx because i don't want to do that.Any help would be appreciated.</p>