How to Change Minsdkversion in Flutter

When working with Flutter and using external packages, you often have to change Minsdkversion according to the package you are using.

There are several ways to change Minsdkversion in Flutter, for more details, follow the following article.

Flutter Before Version 2.8

  1. Open the file “ build.gradle ” in “ Project > android > app > build.gradle ”.
  2. In ” defaultConfig ” change the value ” Minsdkversion “.
  3. Run ” flutter clean “.
minsdk flutter before 2.8

Flutter After Version 2.8

  1. Open the file “ local.properties ” in “ Project > android > local.properties ”.
  2. On the last line add:
flutter.minSdkVersion=21
flutter.targetSdkVersion=30
flutter.compileSdkVersion=30
  1. Then on ” build.gradle ” change it to .
minSdkVersion localProperties.getProperty('flutter.minSdkVersion').toInteger()
targetSdkVersion localProperties.getProperty('flutter.targetSdkVersion').toInteger()
minsdk flutter 2.8
  1. Run ” flutter clean “.
TOP TUTORIALS:  Create real-time applications with Node.js and MySQL