How to Change Minsdkversion in Flutter

bardimin pic

Written by Bardimin

On April 27, 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 Minsdkversion 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 ” Minsdkversion “.
  3. Run ” flutter clean “.
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 “.

Latest Articles

Get to know Nearby Share: Share Files Easily and Quickly

Get to know Nearby Share: Share Files Easily and Quickly

Nearby Share is an app that lets you wirelessly share photos, videos, documents, and other content between your Android device and your Windows computer via Bluetooth and Wi-Fi. Developed by Google, this app offers a fast, easy, and secure file transfer solution for...

How To Fake GPS Location by Using BlueStacks for Online Attendance

How To Fake GPS Location by Using BlueStacks for Online Attendance

Online attendance is currently widely used by organizations or companies. The existence of online attendance like this, on the one hand, will have a very good impact on improving employee discipline. Under certain conditions, the forced implementation of online...

How to fix BlueStacks crashing or freezing in Windows 11

How to fix BlueStacks crashing or freezing in Windows 11

BlueStacks is a famous Android emulator for Windows that lets you play Android games and apps on your Windows PC. If you want to play Android games and apps on your Windows PC, BlueStacks are the best choice for you to use. BlueStacks is widely regarded as the...

How to Install and Run Android Apps on Windows 11

How to Install and Run Android Apps on Windows 11

One of the most interesting features of Windows 11 is the feature to run Android apps. To run Android apps, follow these guidelines. One of the most notable features of Windows 11 is the ability to natively use Android apps on the desktop. "Windows Subsystem for...

x