Home > Net >  Problem to run the application; showing some error message. Flutter
Problem to run the application; showing some error message. Flutter

Time:11-20

Flutter Fix

────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ The plugin google_maps_flutter_android requires a higher Android SDK version.                                                                        │
│ Fix this issue by adding the following to the file D:\Development\ULTIMAT POS\App POS Backup\UltimatePOS_Flutter_1.7.1\pos\android\app\build.gradle: │
│ android {                                                                                                                                            │
│   defaultConfig {                                                                                                                                    │
│     minSdkVersion 20                                                                                                                                 │
│   }                                                                                                                                                  │
│ }                                                                                                                                                    │
│                                                                                                                                                        │
│                                                                                                                                                      │
│ Note that your app won't be available to users running Android SDKs below 20.                                                                        │
│ Alternatively, try to find a version of this plugin that supports these lower versions of the Android SDK.       
│
│ For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration  

CodePudding user response:

in your project folder, look for that file:

android\app\build.gradle

open it in your editor, and search for this:

minSdkVersion flutter.minSdkVersion

replace it with this:

 minSdkVersion 20                                                                                                                                 

CodePudding user response:

Replace minSdkVersion 20 in file build.gradle at folder Android/app/

  • Related