Hi Guy’s Welcome to Proto Coders Point, In this article let’s checkout how to change minSdkVersion
, targetSdkVersion,
compileSdkVersion
of your flutter project android module, follow below steps:
Flutter Change minSdkVersion, TargetSdkVersion
Step 1: Go to path where you have kept or installed flutter sdk, or where you have extracted flutter sdk zip file, May be at path:
C:\flutter
Step 2: Follow the below path to navigate to flutter.gradle file
C:\flutter\packages\flutter_tools\gradle
Step 3: search for flutter.gradle file in gradle folder
The complete path to file “flutter.gradle” is as below:
C:\flutter\packages\flutter_tools\gradle\flutter.gradle
Open the file in any editor
In this file, There is a class “FlutterExtension” where you can change sdkversion like minSdkVersion
, targetSdkVersion,
compileSdkVersion
,ndkVersion
.
After Changing desired SdkVersion, save the file.
Video Tutorial