Reading time: 2 minutes
To fix the following error in a Flutter project in Android Studio, follow these steps:

Following the path shown below, navigate to build.gradle

Once inside, add the following line of code.
multiDexEnabled true

A few lines below, still inside the build.gradle, within dependencies and below implementation “org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version”, add the following implementation:
implementation 'com.android.support:multidex:1.0.3'

Once added, the program or application will run correctly.
I hope this helps you!!!
