This web page requires JavaScript to be enabled.

JavaScript is an object-oriented computer programming language commonly used to create interactive effects within web browsers.

How to enable JavaScript?

Change Android minSdkVersion (flutter.minSdkVersion) in Flutter 

Blog October 23, 2023 0

Sometimes when you add the packages, you may face an issue that asks you to increase the Android minSdkVersion. This happens because the plugin requires a higher android sdk version for projects that were created.

To change Android minSdkVersion in Flutter for the project, you have to make changes in the local.properties file and then reference the new variable from the local.properties file inside the build.gradle file.

Here are the steps:

  1. Locate the local.properties file under the project_folder/android/local.properties
  2. Inside the local.properties file, add the line as flutter.minSdkVersion=21
  3. Now, open the build.gradle file under the project_folder/android/app/build.gradle
  4. Find the defaultConfig section update the minSdkVersion to the localProperties.getProperty('flutter.minSdkVersion').toInteger().
  5. Inside the terminal, run the flutter clean command. Then, Re-run your app.

— Nam Le


Nam Le
lequocnam



0 responds

Leave a Reply

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.