[android] Error:Cannot fit requested classes in a single dex file.Try supplying a main-dex list. # methods: 72477 > 65536

After suffering for two hours found the solution.

File path: android/build.gradle

Worked for me

defaultConfig {
    applicationId "com.something"
    minSdkVersion rootProject.ext.minSdkVersion
    targetSdkVersion rootProject.ext.targetSdkVersion
    versionCode 1
    versionName "1.0"
    multiDexEnabled true --> This works for me
}

If your minSdkVersion is set to 21 or higher, multidex is enabled by default and you do not need the multidex support library. - Reference : https://developer.android.com/studio/build/multidex#mdex-gradle