我在使用 firebase
向我的应用程序添加身份验证时添加不同步的依赖项时遇到错误
Manifest merger failed :
uses-sdk:minSdkVersion 15 cannot be smaller than version 16 declared in library
[com.google.firebase:firebase-auth:19.2.0] C:\Users\Shazail Malik\.gradle\caches\transforms-2\files-2.1\7c78a11c6b4a4456334831db0797030d\firebase-auth-19.2.0
\AndroidManifest.xml as the library might be using APIs not available in 15
建议:使用minSdk最多15的兼容库,
或将此项目的 minSdk 版本增加到至少 16,
或使用 tools:overrideLibrary="com.google.firebase.auth"
强制使用(可能导致运行时失败)
最佳答案
要使用最新的 Firebase 库,最低 API 级别应为 16。
Make sure that your app meets the following requirements:
- Targets API level 16 (Jelly Bean) or later
- Uses Gradle 4.1 or later
检查 documentation了解更多详情。
关于android - android 中的依赖问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59526777/