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:
- Locate the
local.propertiesfile under the
- Inside the local.properties file, add the line as
- Now, open the
build.gradlefile under the
- Find the
defaultConfigsection update the
- Inside the terminal, run the
flutter cleancommand. Then, Re-run your app.
— Nam Le