Multidex issue with Flutter

If you don’t have experience with developing android application this information can be helpful otherwise you won’t find anything new.


In most cases, enough will do the first step

How to enable multidex for flutter project.

  1. Enable multidex.

Open [project_folder]/app/build.gradle and add following lines.

defaultConfig {
    ...

    multiDexEnabled true
}

and

dependencies {
    ...

    implementation 'com.android.support:multidex:1.0.3'
}
  1. Enable Jetifier.

Open [project_folder]/android/gradle.properties and add following lines.

android.useAndroidX=true
android.enableJetifier=true

Leave a Comment