简体   繁体   English

运行应用程序的问题; 显示一些错误信息。 Flutter

[英]Problem to run the application; showing some error message. Flutter

Flutter Fix Flutter 修复

────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ 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  

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                                                                                                                                 

Replace minSdkVersion 20 in file build.gradle at folder Android/app/替换文件夹 Android/app/ 中文件 build.gradle 中的 minSdkVersion 20

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM