How to Change Minsdkversion in Flutter

27 April 2022

Home » Blogs » Android » How to Change Minsdkversion in Flutter

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

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

Flutter Before Version 2.8

  1. Open the file “ build.gradle ” in “ Project > > app > build.gradle ”.
  2. In ” defaultConfig ” change the value ” “.
  3. Run ” clean “.
TOP TUTORIALS:  Create real-time applications with Node.js and MySQL
minsdk flutter before 2.8

Flutter After Version 2.8

  1. Open the file “ local.properties ” in “ Project > > 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 “.

0 Comments

Submit a Comment