Android 如何支持firebase库到sdk 14

Android 如何支持firebase库到sdk 14,android,firebase,firebase-authentication,Android,Firebase,Firebase Authentication,我的android项目的min MindkVersion为14,targetSdkVersion为28。当我试图将firebase添加到此项目时,从官方文档中,它给出了一个错误 错误 清单合并失败:使用sdk:MinSDK版本14不能小于库中声明的版本16 而且 建议: 1) 使用minSdk最多为14的兼容库, 或 2) 将该项目的minSdk版本至少增加到16 但我不想要第二个选择 (将本项目的minSdk版本增加至至少16) 有没有办法解决这个问题? 请帮帮我 这就是我试过的 项目级bui

我的android项目的min MindkVersion为14,targetSdkVersion为28。当我试图将firebase添加到此项目时,从官方文档中,它给出了一个错误

错误 清单合并失败:使用sdk:MinSDK版本14不能小于库中声明的版本16 而且 建议: 1) 使用minSdk最多为14的兼容库, 或 2) 将该项目的minSdk版本至少增加到16

但我不想要第二个选择 (将本项目的minSdk版本增加至至少16)

有没有办法解决这个问题? 请帮帮我

这就是我试过的

项目级build.gradle(/build.gradle):

应用程序级build.gradle(//build.gradle):


如果您绝对必须支持低于16的SDK版本,则必须备份到非常旧版本的Firebase和Play services客户端库。强烈建议您至少针对版本16,否则您将被困在这些旧版本的Google库中

buildscript {
  dependencies {
    // Add this line
    classpath 'com.google.gms:google-services:4.2.0'
  }
}
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'