To disable the shrinker, pass the `--no-shrink` flag to this command. code example

Example 1: The shrinker may have failed to optimize the Java bytecode. To disable the shrinker, pass the `--no-shrink` flag to this command.

buildTypes {
        release {
            signingConfig signingConfigs.debug
            minifyEnabled true
        }
        debug{
            minifyEnabled true
        }
    }

Example 2: To disable the shrinker, pass the `--no-shrink` flag to this command.

1. located android/app/build.gradle file 2. Then access below code in the gradle file

    buildTypes {
    release {

        // TODO: Add your own signing config for the release build.
        // Signing with the debug keys for now, so `flutter run --release` works.
        signingConfig signingConfigs.debug
    }
}
}

and changed it to

buildTypes {
    debug {
        minifyEnabled true

        // TODO: Add your own signing config for the release build.
        // Signing with the debug keys for now, so `flutter run --release` works.
        signingConfig signingConfigs.debug
    }
}
}

The app was able to run in Android emulator

Example 3: To disable the shrinker, pass the `--no-shrink` flag to this command.

Go to android/app/build.gradle
Change the minSdkVersion 21 (to 21)