Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

flutter

uses-sdk:minSdkVersion 16 cannot be smaller than version 19 declared in library [:cloud_firestore]
 D:\doctor_chat\build\cloud_firestore\intermediates\library_manifest\debug\AndroidManifest.xml as the library might be using APIs not available in 16

Suggestion: use a compatible library with a minSdk of at most 16,
    or increase this project's minSdk version to at least 19,
    or use tools:overrideLibrary="io.flutter.plugins.firebase.firestore" to force usage (may lead to runtime failures)

Im getting above error in my code. how to solve this.

enter image description here

enter image description here

like image 869
Nidew Avatar asked Jan 23 '26 06:01

Nidew


1 Answers

In your app Navigate to android/app/build.gradle and change minsdk from 16 to 21

Here is an image

Hope it will resolve your problem

like image 163
Ahmad Raza Avatar answered Jan 26 '26 00:01

Ahmad Raza



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!