Flutter The number of method references in a .dex file cannot exceed 64K错误

在android/app/build.gradle中添加

dependencies中添加

implementation'com.android.support:multidex:1.0.3'

defaultConfig中添加

multiDexEnabledtrue

如图所示



implementation'com.android.support:multidex:1.0.3'

defaultConfig中添加

multiDexEnabledtrue

你可能感兴趣的:(Flutter The number of method references in a .dex file cannot exceed 64K错误)