[英]I´m getting this error "Execution failed for task ':app:processDebugMainManifest'" on Flutter
I´m using flutter version 3.4.0 with cloud_firestore version ^4.1.0 and I´m getting this error: `Execution failed for task ':app:processDebugMainManifest'我使用 flutter 版本 3.4.0 和 cloud_firestore 版本 ^4.1.0,我收到此错误:“任务执行失败:app:processDebugMainManifest”
Manifest merger failed: uses-sdk:minSdkVersion 16 cannot be smaller than version 19 declared in library [:cloud_firestore]`
清单合并失败:uses-sdk:minSdkVersion 16 不能小于库 [:cloud_firestore] 中声明的版本 19
How should I change version of the minSdk from 16 to 19?我应该如何将 minSdk 的版本从 16 更改为 19?
This is my defaultConfig: `这是我的默认配置:`
defaultConfig {
applicationId "com.example.example"
minSdkVersion flutter.minSdkVersion
targetSdkVersion flutter.targetSdkVersion
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
}
` `
you need to modify it in your build.gradle
file.您需要在
build.gradle
文件中对其进行修改。 see: Flutter Execution failed for task ':app:processDebugResources'请参阅: Flutter 任务 ':app:processDebugResources' 执行失败
Hope it works!希望它有效!
Add this line into your local_properties
:将此行添加到您的
local_properties
:
flutter.minSdkVersion=21
Then in your build.gradle
under the app folder find the defaultConfig
and replace value of minSdkVersion
for localProperties.getProperty('flutter.minSdkVersion').toInteger()
然后在你的
build.gradle
的 app 文件夹下找到defaultConfig
并将minSdkVersion
的值替换为localProperties.getProperty('flutter.minSdkVersion').toInteger()
To finish just type commands flutter clean
and flutter pub get
要完成,只需键入命令
flutter clean
和flutter pub get
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.