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
}
`
2
Answers
you need to modify it in your
build.gradle
file.see: Flutter Execution failed for task ':app:processDebugResources'
Hope it works!
Add this line into your
local_properties
:flutter.minSdkVersion=21
Then in your
build.gradle
under the app folder find thedefaultConfig
and replace value ofminSdkVersion
forlocalProperties.getProperty(‘flutter.minSdkVersion’).toInteger()
To finish just type commands
flutter clean
andflutter pub get