When I try flutter run
the following error occurs:
Error: ADB exited with exit code 1
Performing Streamed Install
adb: failed to install C:\Flutter\appname\build\app\outputs\flutter-apk\app.apk: Failure [INSTALL_FAILED_OLDER_SDK: Failed parse during installPackageLI: /data/app/vmdl1847062534.tmp/base.apk (at Binary XML file line #7):
Requires newer sdk version #31 (current version is #30)]
Error launching application on SM A127F.
Here is part of my build.gradle file
defaultConfig {
applicationId "de.domain.appname"
minSdkVersion 31
multiDexEnabled true
targetSdkVersion 31
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
}