我正在尝试将 firebase 添加到我的 flutter 项目中。我收到此错误:
uses-sdk:minSdkVersion 16 cannot be smaller than version 19 declared in library [com.google.firebase:firebase-analytics-ktx:20.0.1] /home/sonu/.gradle/caches/transforms-2/files-2.1/798243125f1f7594aa48e9bc333d339c/jetified-firebase-analytics-ktx-20.0.1/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="com.google.firebase.analytics.ktx" to force usage (may lead to runtime failures)
Run Code Online (Sandbox Code Playgroud)
我最近将我的 flutter 更新到了 2.8.1 版本,我尝试更改我的 minSdk 但没有成功。
这是完整的日志:
[enter image description here][1]
Run Code Online (Sandbox Code Playgroud)
请有人帮我解决这个问题。