skip to Main Content

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:DevelopmentULTIMAT POSApp POS BackupUltimatePOS_Flutter_1.7.1posandroidappbuild.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  

2

Answers


  1. in your project folder, look for that file:

    androidappbuild.gradle
    

    open it in your editor, and search for this:

    minSdkVersion flutter.minSdkVersion
    

    replace it with this:

     minSdkVersion 20                                                                                                                                 
    
    Login or Signup to reply.
  2. Replace minSdkVersion 20 in file build.gradle at folder Android/app/

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search