Where is flutter.minsdkversion and How to Change it? (2023)

When you add external packages, it makes it easier for you to achieve the complex feature of your app. Sometimes when you add external packages, you may face an issues regarding “flutter.minsdkversion” that asks you to increase the minSdkVersion. This is happen because that plugin required the higher android SDK version for the project.

Here the following question you will be answer from this article:

  1. Way 1: Where is flutter.minsdkversion before the flutter 2.8 update.
  2. Way 2: Where is flutter.minsdkversion after the flutter 2.8 update?

There are two ways two change the android flutter.minsdkversion. Way1 is for the project before flutter 2.8. Way2 is for the project after flutter 2.8.

Way 1: Where is flutter.minsdkversion before the flutter 2.8 update

To find and change the flutter minSdkVersion for the project created before 2.8 update, you can directly make change inside the build.gradle file.

Step1: Go to this location: project_folder/android/app/build.gradle

Step2: Find out the defaultConfig section and the update the minSdkVersion to the new version.

Step3: Inside the terminal, run flutter clean command and re-run your app.

Code:

defaultConfig {
        // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
        applicationId "org.voltagelab"
        minSdkVersion 22 // <-- SEE HERE
        targetSdkVersion 33
        multiDexEnabled true
        versionCode flutterVersionCode.toInteger()
        versionName flutterVersionName
    }

Screenshot

flutter minsdkverson change

Way 2: Where is flutter.minsdkversion after the flutter 2.8 update?

If you want to change the flutter.minsdkversion after the flutter 2.8 update then you have to make change the local.properties file and then reference the new variable from the local.properties file inside the build.gradle file.

Step1: Go to the location: project_folder/android/local.properties

Step2: In local.properties file, add the line as: flutter.minSdkVersion=22

Step3: Now open build.gradle file from this location: project_folder/android/app/build.gradle

Step4: Find the defaultConfig section and update the minSdkVersion to the localProperties.getProperty(‘flutter.minSdkVersion’).toInteger()

Step5: Run the flutter clean command into the terminal and run the app.

Code:

sdk.dir=C:\\Users\\rony\\AppData\\Local\\Android\\sdk
flutter.sdk=C:\\Users\\rony\\flutter
flutter.buildMode=debug
flutter.versionName=1.2.7
flutter.versionCode=34
flutter.minSdkVersion=22

---------------------------------------------------------------------

defaultConfig {
        // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
       applicationId "org.voltagelab"
       minSdkVersion  localProperties.getProperty(‘flutter.minSdkVersion’).toInteger()
       targetSdkVersion flutter.targetSdkVersion 
       multiDexEnabled true
       versionCode flutterVersionCode.toInteger()
       versionName flutterVersionName
    }
Where is flutter.minsdkversion

This is how you can get Where is flutter.minsdkversion and change the minSdkVersion flutter. We hope that you can solve this issues. If you face any issues, you can leave a comment.

Read More:

How To Make Color Picker In Flutter

Related articles

Top 5 Business Listing App Template

The Top 5 Business App Template is made for...

Things To Remember For A Flutter Developer Resume | Mind-blowing

This article will enlighten you about how to write...

How to Change the Text Color in Flutter | Change Color of Text in 2023

In this article, we will explore how to change...

Top 5 Best Listing Mobile Directory Apps & Templates in 2023

What are the best Listing Mobile Directory Apps &...

How to Use Path Provide Flutter with Read Write Example in 2023

Path Provider Flutter is a Flutter package for finding...

Case Studies

Case Study: English Booster App

Flutter Service, your go-to for cutting-edge mobile applications, has once again stepped up to the challenge with the English Booster App. Our skilled team...
eDental App

Case Study: eDental Dentist App

Our team recently embarked on an exciting project to develop the eDental Dentist App, a cutting-edge mobile application designed for both Android and iOS...

App Competitor Analysis & Factors

EEE Engineers apps approached us to conduct a thorough competitor analysis, aiming to enhance their app's ranking. By utilizing our expertise, we meticulously audited...