Cannot Fit Requested Classes In A Single Dex File

[Solved] Cannot Fit Requested Classes In A Single Dex File | Java - Code Explorer | yomemimo.com
Question : cannot fit requested classes in a single dex file

Answered by : glamorous-gazelle-i76gswjxo7l2

//Add the library in app gradle
implementation 'com.android.support:multidex:1.0.3'
//Add this to the default config in the app gradle
multiDexEnabled true
//If this still doesn't work, consider adding this name into the android manifesto
android:name=".MyApplication"

Source : | Last Update : Mon, 20 Apr 20

Question : cannot fit requested classes in a single dex file flutter

Answered by : agreeable-antelope-vq1ith0u67d4

defaultConfig { ... multiDexEnabled true
}
//In dependencies
dependencies {	implementation 'androidx.multidex:multidex:2.0.1'

Source : https://stackoverflow.com/questions/55591958/flutter-firestore-causing-d8-cannot-fit-requested-classes-in-a-single-dex-file | Last Update : Sun, 12 Jul 20

Question : Cannot fit requested classes in a single dex file (# methods: 65710 > 65536)

Answered by : misty-magpie-2p7mjy951p1q

android { defaultConfig { ... minSdkVersion 21 <----- *here targetSdkVersion 26 multiDexEnabled true <------ *here } ...
}

Source : https://stackoverflow.com/questions/48249633/errorcannot-fit-requested-classes-in-a-single-dex-file-try-supplying-a-main-dex | Last Update : Sun, 27 Dec 20

Question : Cannot fit requested classes in a single dex file (# methods: 65710 > 65536)

Answered by : misty-magpie-2p7mjy951p1q

 def multidex_version = "2.0.1" implementation 'androidx.multidex:multidex:$multidex_version'

Source : https://stackoverflow.com/questions/48249633/errorcannot-fit-requested-classes-in-a-single-dex-file-try-supplying-a-main-dex | Last Update : Sun, 27 Dec 20

Answers related to Cannot fit requested classes in a single dex file

Code Explorer Popular Question For Java