简体   繁体   English

我在 Flutter 上收到此错误“任务 ':app:processDebugMainManifest' 执行失败”

[英]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 cleanflutter pub get

暂无
暂无

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

相关问题 flutter 中的任务“:app:transformDexArchiveWithExternalLibsDexMergerForDebug”执行失败 - Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug' in flutter 尝试构建 apk 并发生以下错误:Flutter Firebase.app(appName) error, Execution failed for task ':app:compileFlutterBuildDebug' - Trying to build apk and these error occur: Flutter Firebase.app(appName) error, Execution failed for task ':app:compileFlutterBuildDebug' Task:app:processDebugMainManifest FAILED,Manifest Merger Failed with multiple errors in React Native using Android Sdk 版本 31 - Task :app:processDebugMainManifest FAILED, Manifest Merger Failed with multiple errors in React Native using Android Sdk Version 31 无法在模拟器中运行我的 flutter 应用程序:任务执行失败 - Cannot run my flutter app in an emulator: Execution failed for task 任务 ':app:processDebugResources 执行失败 - Execution failed for task ':app:processDebugResources Android 构建失败并出现错误:任务 ':app:checkReleaseDuplicateClasses' 执行失败 - Android build fails with error: Execution failed for task ':app:checkReleaseDuplicateClasses' 错误:任务 ':app:packageDebug' 执行失败。 >.zip.isFile() - Error:Execution failed for task ':app:packageDebug'. > !zip.isFile() 任务 ':app:mapDebugSourceSetPaths' 执行失败。 > 评估任务的属性“extraGeneratedResDir”时出错 - Execution failed for task ':app:mapDebugSourceSetPaths'. > Error while evaluating property 'extraGeneratedResDir' of task 任务“:app:mergeDebugJavaResource”执行失败。 - Gradle 任务集合 - Execution failed for task ':app:mergeDebugJavaResource'. - Gradle Task assemble Flutter 构建失败 [任务 ':firebase_core:compileReleaseJavaWithJavac' 执行失败。] - Flutter build fails [Execution failed for task ':firebase_core:compileReleaseJavaWithJavac'.]
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM