MultiDex.install(this);
defaultConfig { applicationId "com.tomato.tomato_app" minSdkVersion 21 multiDexEnabled true //添加 targetSdkVersion flutter.targetSdkVersion versionCode flutterVersionCode.toInteger() versionName flutterVersionName } buildTypes { release { signingConfig signingConfigs.debug } } } dependencies { implementation 'com.android.support:multidex:2.0.1' //添加 }