Androidx MutliDex: The number of method references in a .dex file cannot exceed 64K react native

The number of method references in a .dex file cannot exceed 64K. Learn how to resolve this issue in React Native

02 Apr 2020

This error occurs when you install so many packages

1. First Is

Path: android\app\build.gradle

   defaultConfig {
        applicationId "com.lionchargeev"
        minSdkVersion rootProject.ext.minSdkVersion
        targetSdkVersion rootProject.ext.targetSdkVersion
        versionCode 1
        versionName "1.0"
        multiDexEnabled true  //Add This Line Here

    }

// Add this Package in dependencies

dependencies {
  implementation 'com.android.support:multidex:1.0.3'

}

Save and Run: npx react-native run-android

If Not Solve Than Comment Below:


The number of method references in a .dex file cannot exceed 64k react native








You may like these posts