SlideShare a Scribd company logo
1 of 13
How to Change Android Minsdkversion in Flutter
App Development?
Including third-party software in your app may make things simpler for
you and give you more time to concentrate on the aspects of your app
that are most important to its success. However, if you install the
packages, there is a possibility that you may run into a problem that
requires you to raise the Android minimum SDK version.
This occurs as a result of the fact that the plugin needs a higher android
sdk version for projects that were built both before and after
the Flutter 2.8 release. Therefore, the purpose of this article is to
demonstrate how to modify the Android minimum SDK version in the
best flutter app development.
Changes that Can Be Made to the Android
minimum SDK Version in Flutter
You may alter the Android minimum required SDK version in one of two
methods. The first one applies to projects that were started before the
Flutter 2.8 release, while the second one applies to projects that were
started after the Flutter 2.8 upgrade. Many companies like Google Pay,
Alibaba Group, BMW & Tencent are now using Flutter technology for
their mobile application. An experienced Flutter developer is the right
choice for your organization if you want a seamless mobile application
for your business.
For Projects That Were Created Prior to the Release of the Flutter 2.8
Update,you must explicitly make modifications inside the build.gradle
file in order to adjust the minSdkVersion setting in Flutter for
projects that were built before the 2.8 upgrade.
Steps:
Step 1:
Navigate to the project folder/android/app/build.gradle folder and
open the build.gradle file there.
Step 2:
Navigate to the defaultConfig section and change the minSdkVersion
value to the most recent available version.
Step 3:
Once you are inside the terminal, execute the command to clear flutter.
Step 4:
Re-run your app.
Code example:
defaultConfig {
applicationId "com.example.common_project"
minSdkVersion 21 // <-- SEE HERE
targetSdkVersion 30
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
}
For Projects That Have Been Created Since the
Flutter 2.8 Update
If you want to alter the Android minimum SDK version for a Flutter
project that was created after the 2.8 release, you will need to make
changes in the local.properties file and then reference the new variable
that you made in the local.properties file inside the build.gradle file.
Steps:
Step 1:
Find the file named local.properties in the project folder that is
labeled android and look for it there.
Step 2:
Insert the line marked flutter into the local.properties file on your
computer. minSdkVersion=21
Step 3:
Open the build.gradle file that can be found in the project
folder/android/app/build.gradle directory at this point.
Step 4:
The fourth step is to locate the defaultConfig section and then change
the localProperties with the minSdkVersion.
getProperty(‘flutter.minSdkVersion’).toInteger().
Step 5:
Once you are inside the terminal, execute the command to clear flutter.
Step 6:
Give your application another try.
Code example:
• Under local.properties file
sdk.dir=/Users/Admin/Library/Android/sdk
flutter.sdk=/Users/Admin/Data/Development/flutter
flutter.buildMode=debug
flutter.versionName=1.0.0
flutter.versionCode=1
flutter.minSdkVersion=20 #new
• Under build.gradle file
defaultConfig {
// TODO: Specify your own unique Application ID
(https://developer.android.com/studio/build/application-id.html).
applicationId "com.example.sample_project"
minSdkVersion localProperties.getProperty('flutter.minSdkVersion').toInteger()
targetSdkVersion flutter.targetSdkVersion
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
}
Conclusion
Throughout this guide, we went through the steps required to alter the
Android minimum SDK version in Flutter using illustrative examples. For
projects made both before and after the Flutter 2.8 upgrade, we
investigated both of the available methods for updating the SDK
version on Android. Keep visiting www.flutteragency.com for more such
informative articles.
Source: https://flutteragency.com/change-android-minsdkversion-
flutter/

More Related Content

More from BOSC Tech Labs

The iOS Advantage_ How Apple’s Ecosystem Is Setting the Stage for Next-Gen Bu...
The iOS Advantage_ How Apple’s Ecosystem Is Setting the Stage for Next-Gen Bu...The iOS Advantage_ How Apple’s Ecosystem Is Setting the Stage for Next-Gen Bu...
The iOS Advantage_ How Apple’s Ecosystem Is Setting the Stage for Next-Gen Bu...BOSC Tech Labs
 
The Role iOS App Development_ Hiring for the Future.pdf
The Role iOS App Development_ Hiring for the Future.pdfThe Role iOS App Development_ Hiring for the Future.pdf
The Role iOS App Development_ Hiring for the Future.pdfBOSC Tech Labs
 
React 19: Revolutionizing Web Development
React 19: Revolutionizing Web DevelopmentReact 19: Revolutionizing Web Development
React 19: Revolutionizing Web DevelopmentBOSC Tech Labs
 
2024 Custom Software Development Guide: Trends, Steps & Benefits
2024 Custom Software Development Guide: Trends, Steps & Benefits2024 Custom Software Development Guide: Trends, Steps & Benefits
2024 Custom Software Development Guide: Trends, Steps & BenefitsBOSC Tech Labs
 
What is the Easiest Way to Hire a React Developer?
What is the Easiest Way to Hire a React Developer?What is the Easiest Way to Hire a React Developer?
What is the Easiest Way to Hire a React Developer?BOSC Tech Labs
 
Top 10 React Carousel Component Libraries and their Usage Trends
Top 10 React Carousel Component Libraries and their Usage TrendsTop 10 React Carousel Component Libraries and their Usage Trends
Top 10 React Carousel Component Libraries and their Usage TrendsBOSC Tech Labs
 
The Comprehensive Tech Guide to iOS Mobile App Development: From Concept to L...
The Comprehensive Tech Guide to iOS Mobile App Development: From Concept to L...The Comprehensive Tech Guide to iOS Mobile App Development: From Concept to L...
The Comprehensive Tech Guide to iOS Mobile App Development: From Concept to L...BOSC Tech Labs
 
STEP BY STEP GUIDE TO HIRING EXPERIENCED FLUTTER DEVELOPERS
STEP BY STEP GUIDE TO HIRING EXPERIENCED FLUTTER DEVELOPERSSTEP BY STEP GUIDE TO HIRING EXPERIENCED FLUTTER DEVELOPERS
STEP BY STEP GUIDE TO HIRING EXPERIENCED FLUTTER DEVELOPERSBOSC Tech Labs
 
Top 10 Essential Traits to Look For Hire Remote React Developer
Top 10 Essential Traits to Look For Hire Remote React DeveloperTop 10 Essential Traits to Look For Hire Remote React Developer
Top 10 Essential Traits to Look For Hire Remote React DeveloperBOSC Tech Labs
 
Transform Your Mobile App Development with ChatGPT
Transform Your Mobile App Development with ChatGPTTransform Your Mobile App Development with ChatGPT
Transform Your Mobile App Development with ChatGPTBOSC Tech Labs
 
Which Is The Best AI Tool For Mobile App Development_.pdf
Which Is The Best AI Tool For Mobile App Development_.pdfWhich Is The Best AI Tool For Mobile App Development_.pdf
Which Is The Best AI Tool For Mobile App Development_.pdfBOSC Tech Labs
 
Revealing Development Efficiency: How AI Powers Innovation in Software Creati...
Revealing Development Efficiency: How AI Powers Innovation in Software Creati...Revealing Development Efficiency: How AI Powers Innovation in Software Creati...
Revealing Development Efficiency: How AI Powers Innovation in Software Creati...BOSC Tech Labs
 
Boost Your Website with Top React Carousel Libraries | BOSC
Boost Your Website with Top React Carousel Libraries | BOSCBoost Your Website with Top React Carousel Libraries | BOSC
Boost Your Website with Top React Carousel Libraries | BOSCBOSC Tech Labs
 
Maximize Development Efficiency with ReactJS.pdf
Maximize Development Efficiency with ReactJS.pdfMaximize Development Efficiency with ReactJS.pdf
Maximize Development Efficiency with ReactJS.pdfBOSC Tech Labs
 
Check How Real-Time Video Streaming Can Benefit Your Business.pdf
Check How Real-Time Video Streaming Can Benefit Your Business.pdfCheck How Real-Time Video Streaming Can Benefit Your Business.pdf
Check How Real-Time Video Streaming Can Benefit Your Business.pdfBOSC Tech Labs
 
Boost Startup Success: Hire Skilled ReactJS Developers Today
Boost Startup Success: Hire Skilled ReactJS Developers TodayBoost Startup Success: Hire Skilled ReactJS Developers Today
Boost Startup Success: Hire Skilled ReactJS Developers TodayBOSC Tech Labs
 
Why Startups Should Consider Flutter App Developers?
Why Startups Should Consider Flutter App Developers?Why Startups Should Consider Flutter App Developers?
Why Startups Should Consider Flutter App Developers?BOSC Tech Labs
 
Why flutter a game changer in app development By Flutter Agency.pdf
Why flutter a game changer in app development By Flutter Agency.pdfWhy flutter a game changer in app development By Flutter Agency.pdf
Why flutter a game changer in app development By Flutter Agency.pdfBOSC Tech Labs
 
React 18: New Features & Innovations
React 18: New Features & InnovationsReact 18: New Features & Innovations
React 18: New Features & InnovationsBOSC Tech Labs
 
How Much Does it Cost to Hire the Best React.js Developer
How Much Does it Cost to Hire the Best React.js DeveloperHow Much Does it Cost to Hire the Best React.js Developer
How Much Does it Cost to Hire the Best React.js DeveloperBOSC Tech Labs
 

More from BOSC Tech Labs (20)

The iOS Advantage_ How Apple’s Ecosystem Is Setting the Stage for Next-Gen Bu...
The iOS Advantage_ How Apple’s Ecosystem Is Setting the Stage for Next-Gen Bu...The iOS Advantage_ How Apple’s Ecosystem Is Setting the Stage for Next-Gen Bu...
The iOS Advantage_ How Apple’s Ecosystem Is Setting the Stage for Next-Gen Bu...
 
The Role iOS App Development_ Hiring for the Future.pdf
The Role iOS App Development_ Hiring for the Future.pdfThe Role iOS App Development_ Hiring for the Future.pdf
The Role iOS App Development_ Hiring for the Future.pdf
 
React 19: Revolutionizing Web Development
React 19: Revolutionizing Web DevelopmentReact 19: Revolutionizing Web Development
React 19: Revolutionizing Web Development
 
2024 Custom Software Development Guide: Trends, Steps & Benefits
2024 Custom Software Development Guide: Trends, Steps & Benefits2024 Custom Software Development Guide: Trends, Steps & Benefits
2024 Custom Software Development Guide: Trends, Steps & Benefits
 
What is the Easiest Way to Hire a React Developer?
What is the Easiest Way to Hire a React Developer?What is the Easiest Way to Hire a React Developer?
What is the Easiest Way to Hire a React Developer?
 
Top 10 React Carousel Component Libraries and their Usage Trends
Top 10 React Carousel Component Libraries and their Usage TrendsTop 10 React Carousel Component Libraries and their Usage Trends
Top 10 React Carousel Component Libraries and their Usage Trends
 
The Comprehensive Tech Guide to iOS Mobile App Development: From Concept to L...
The Comprehensive Tech Guide to iOS Mobile App Development: From Concept to L...The Comprehensive Tech Guide to iOS Mobile App Development: From Concept to L...
The Comprehensive Tech Guide to iOS Mobile App Development: From Concept to L...
 
STEP BY STEP GUIDE TO HIRING EXPERIENCED FLUTTER DEVELOPERS
STEP BY STEP GUIDE TO HIRING EXPERIENCED FLUTTER DEVELOPERSSTEP BY STEP GUIDE TO HIRING EXPERIENCED FLUTTER DEVELOPERS
STEP BY STEP GUIDE TO HIRING EXPERIENCED FLUTTER DEVELOPERS
 
Top 10 Essential Traits to Look For Hire Remote React Developer
Top 10 Essential Traits to Look For Hire Remote React DeveloperTop 10 Essential Traits to Look For Hire Remote React Developer
Top 10 Essential Traits to Look For Hire Remote React Developer
 
Transform Your Mobile App Development with ChatGPT
Transform Your Mobile App Development with ChatGPTTransform Your Mobile App Development with ChatGPT
Transform Your Mobile App Development with ChatGPT
 
Which Is The Best AI Tool For Mobile App Development_.pdf
Which Is The Best AI Tool For Mobile App Development_.pdfWhich Is The Best AI Tool For Mobile App Development_.pdf
Which Is The Best AI Tool For Mobile App Development_.pdf
 
Revealing Development Efficiency: How AI Powers Innovation in Software Creati...
Revealing Development Efficiency: How AI Powers Innovation in Software Creati...Revealing Development Efficiency: How AI Powers Innovation in Software Creati...
Revealing Development Efficiency: How AI Powers Innovation in Software Creati...
 
Boost Your Website with Top React Carousel Libraries | BOSC
Boost Your Website with Top React Carousel Libraries | BOSCBoost Your Website with Top React Carousel Libraries | BOSC
Boost Your Website with Top React Carousel Libraries | BOSC
 
Maximize Development Efficiency with ReactJS.pdf
Maximize Development Efficiency with ReactJS.pdfMaximize Development Efficiency with ReactJS.pdf
Maximize Development Efficiency with ReactJS.pdf
 
Check How Real-Time Video Streaming Can Benefit Your Business.pdf
Check How Real-Time Video Streaming Can Benefit Your Business.pdfCheck How Real-Time Video Streaming Can Benefit Your Business.pdf
Check How Real-Time Video Streaming Can Benefit Your Business.pdf
 
Boost Startup Success: Hire Skilled ReactJS Developers Today
Boost Startup Success: Hire Skilled ReactJS Developers TodayBoost Startup Success: Hire Skilled ReactJS Developers Today
Boost Startup Success: Hire Skilled ReactJS Developers Today
 
Why Startups Should Consider Flutter App Developers?
Why Startups Should Consider Flutter App Developers?Why Startups Should Consider Flutter App Developers?
Why Startups Should Consider Flutter App Developers?
 
Why flutter a game changer in app development By Flutter Agency.pdf
Why flutter a game changer in app development By Flutter Agency.pdfWhy flutter a game changer in app development By Flutter Agency.pdf
Why flutter a game changer in app development By Flutter Agency.pdf
 
React 18: New Features & Innovations
React 18: New Features & InnovationsReact 18: New Features & Innovations
React 18: New Features & Innovations
 
How Much Does it Cost to Hire the Best React.js Developer
How Much Does it Cost to Hire the Best React.js DeveloperHow Much Does it Cost to Hire the Best React.js Developer
How Much Does it Cost to Hire the Best React.js Developer
 

How to Change Android Minsdkversion in Flutter App Development.pptx

  • 1.
  • 2. How to Change Android Minsdkversion in Flutter App Development? Including third-party software in your app may make things simpler for you and give you more time to concentrate on the aspects of your app that are most important to its success. However, if you install the packages, there is a possibility that you may run into a problem that requires you to raise the Android minimum SDK version. This occurs as a result of the fact that the plugin needs a higher android sdk version for projects that were built both before and after the Flutter 2.8 release. Therefore, the purpose of this article is to demonstrate how to modify the Android minimum SDK version in the best flutter app development.
  • 3. Changes that Can Be Made to the Android minimum SDK Version in Flutter You may alter the Android minimum required SDK version in one of two methods. The first one applies to projects that were started before the Flutter 2.8 release, while the second one applies to projects that were started after the Flutter 2.8 upgrade. Many companies like Google Pay, Alibaba Group, BMW & Tencent are now using Flutter technology for their mobile application. An experienced Flutter developer is the right choice for your organization if you want a seamless mobile application for your business.
  • 4. For Projects That Were Created Prior to the Release of the Flutter 2.8 Update,you must explicitly make modifications inside the build.gradle file in order to adjust the minSdkVersion setting in Flutter for projects that were built before the 2.8 upgrade. Steps: Step 1: Navigate to the project folder/android/app/build.gradle folder and open the build.gradle file there.
  • 5. Step 2: Navigate to the defaultConfig section and change the minSdkVersion value to the most recent available version.
  • 6. Step 3: Once you are inside the terminal, execute the command to clear flutter. Step 4: Re-run your app. Code example: defaultConfig { applicationId "com.example.common_project" minSdkVersion 21 // <-- SEE HERE targetSdkVersion 30 versionCode flutterVersionCode.toInteger() versionName flutterVersionName }
  • 7. For Projects That Have Been Created Since the Flutter 2.8 Update If you want to alter the Android minimum SDK version for a Flutter project that was created after the 2.8 release, you will need to make changes in the local.properties file and then reference the new variable that you made in the local.properties file inside the build.gradle file. Steps: Step 1: Find the file named local.properties in the project folder that is labeled android and look for it there.
  • 8.
  • 9. Step 2: Insert the line marked flutter into the local.properties file on your computer. minSdkVersion=21
  • 10. Step 3: Open the build.gradle file that can be found in the project folder/android/app/build.gradle directory at this point. Step 4: The fourth step is to locate the defaultConfig section and then change the localProperties with the minSdkVersion. getProperty(‘flutter.minSdkVersion’).toInteger().
  • 11. Step 5: Once you are inside the terminal, execute the command to clear flutter. Step 6: Give your application another try. Code example: • Under local.properties file sdk.dir=/Users/Admin/Library/Android/sdk flutter.sdk=/Users/Admin/Data/Development/flutter flutter.buildMode=debug flutter.versionName=1.0.0 flutter.versionCode=1 flutter.minSdkVersion=20 #new
  • 12. • Under build.gradle file defaultConfig { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). applicationId "com.example.sample_project" minSdkVersion localProperties.getProperty('flutter.minSdkVersion').toInteger() targetSdkVersion flutter.targetSdkVersion versionCode flutterVersionCode.toInteger() versionName flutterVersionName }
  • 13. Conclusion Throughout this guide, we went through the steps required to alter the Android minimum SDK version in Flutter using illustrative examples. For projects made both before and after the Flutter 2.8 upgrade, we investigated both of the available methods for updating the SDK version on Android. Keep visiting www.flutteragency.com for more such informative articles. Source: https://flutteragency.com/change-android-minsdkversion- flutter/