I\'m getting the following error compiling with gradle using Flutter in Android Studio:
Dex: Error converting bytecode to dex:
Cause: com.android.dex.DexExce
Just change the line in app\build.gradle
defaultConfig{
multiDexEnabled true
}
Do not add any dependencies I first added multidex dependencies but program said cannot find it I then added maven to build.gradle but made no change
Actually you need to change false to true nothing else Android studio will do rest