flutter uses-sdk:minSdkVersion 16不能小于库[:cloud_firestore]中声明的version 19

wpcxdonn  于 2023-05-30  发布在  Flutter
关注(0)|答案(3)|浏览(170)
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)

我得到上面的错误在我的代码。如何解决这个问题。

svmlkihl

svmlkihl1#

在应用中导航到android/app/build.gradle并将minsdk从16更改为21

希望它能解决你的问题

hzbexzde

hzbexzde2#

在项目中转到android/app/build.gradle文件,并将minSdkVersion编辑为:

minSdkVersion 19
r7knjye2

r7knjye23#

android/app/build.gradle中的minSdk版本16更新为19

defaultConfig {
    // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
    minSdkVersion 16 // change it to 19 
}

相关问题