Flutter 运行颤振应用程序时出错“;com.android.builder.dexing.DexArchiveMergerException“;

Flutter 运行颤振应用程序时出错“;com.android.builder.dexing.DexArchiveMergerException“;,flutter,dart,Flutter,Dart,运行颤振应用程序时出现此错误。我所做的是从sdk升级了颤振:“>=2.7.0=2.12.0=2.7.0向你的应用程序/build.gradle defaultConfig { (https://developer.android.com/studio/build/application-id.html). applicationId "com.arslan.example" // I suggest you to increase minSdkVers

运行颤振应用程序时出现此错误。我所做的是从sdk升级了颤振:“>=2.7.0=2.12.0=2.7.0向你的
应用程序/build.gradle

defaultConfig {
    (https://developer.android.com/studio/build/application-id.html).
    applicationId "com.arslan.example"
    // I suggest you to increase minSdkVersion from 16 to 21
    minSdkVersion 21
    targetSdkVersion 28
    versionCode flutterVersionCode.toInteger()
    versionName flutterVersionName
    testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    //Add this line here...
    multiDexEnabled true
}

请告诉我此解决方案是否有助于解决您的问题

非常感谢,它起了作用:')
defaultConfig {
    (https://developer.android.com/studio/build/application-id.html).
    applicationId "com.arslan.example"
    // I suggest you to increase minSdkVersion from 16 to 21
    minSdkVersion 21
    targetSdkVersion 28
    versionCode flutterVersionCode.toInteger()
    versionName flutterVersionName
    testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    //Add this line here...
    multiDexEnabled true
}