flutter multidex enabled over 64K method | Error cannot fit requested classes in a single dex file

preview_player
Показать описание
in this video we learn how to solve flutter multidex enabled over 64K method problem error cannot fit requested classes in a single dex file | while merging archives | multidex problem

1.Method 1

Enable multidex library s a dependency,

i added this in video: in flutter app in path :

multiDexEnabled true

ex:
android {
defaultConfig {
minSdkVersion 19
versionName flutterVersionName
multiDexEnabled = true //add this
}
...
}

or
2.Method 2

minSdkVersion 21

ex:
android {
defaultConfig {
minSdkVersion 21 //add this
versionName flutterVersionName

}
...
}
Рекомендации по теме
welcome to shbcf.ru