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'

Manifest merger failed : uses-sdk:minSdkVersion 16 cannot be smaller than version 19 declared in library [:cloud_firestore]`

How should I change version of the minSdk from 16 to 19?

This is my defaultConfig: `

  defaultConfig {
        applicationId "com.example.example"
        minSdkVersion flutter.minSdkVersion
        targetSdkVersion flutter.targetSdkVersion
        versionCode flutterVersionCode.toInteger()
        versionName flutterVersionName
    }

`

Upvotes: 1

Views: 1285

Answers (2)

Alberto Valerio
Alberto Valerio

Reputation: 418

Add this line into your 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()

To finish just type commands flutter clean and flutter pub get

Upvotes: 2

Jonah
Jonah

Reputation: 25

you need to modify it in your build.gradle file. see: Flutter Execution failed for task ':app:processDebugResources'

Hope it works!

Upvotes: 1

Related Questions