Multidex issue with Flutter

前端 未结 7 1163
青春惊慌失措
青春惊慌失措 2020-11-27 17:35

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         


        
7条回答
  •  温柔的废话
    2020-11-27 17:51

    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

提交回复
热议问题