【发布时间】:2019-12-06 20:47:24
【问题描述】:
我的 android 项目的 min minSdkVersion 是 14,targetSdkVersion 是 28。当我试图将 firebase 添加到这个项目时,来自官方文档,它给出了一个错误
错误 清单合并失败:uses-sdk:minSdkVersion 14 不能小于库中声明的版本 16 它 建议: 1) 使用 minSdk 最多为 14 的兼容库, 要么 2)将此项目的minSdk版本增加到至少16,
但我不想要第二个选项 (将此项目的 minSdk 版本增加到至少 16)
有什么办法可以解决这个问题吗? 请帮帮我
这是我尝试过的
项目级build.gradle(/build.gradle):
buildscript {
dependencies {
// Add this line
classpath 'com.google.gms:google-services:4.2.0'
}
}
应用级 build.gradle (//build.gradle):
dependencies {
// Add this line
implementation 'com.google.firebase:firebase-core:17.0.0'
}
...
// Add to the bottom of the file
apply plugin: 'com.google.gms.google-services'
【问题讨论】:
标签: android firebase firebase-authentication