为什么在我尝试将firebase添加到Android项目时会发生此错误?

为什么在我尝试将firebase添加到Android项目时会发生此错误?,android,firebase,kotlin,Android,Firebase,Kotlin,我试着在这里使用firebase 我的代码 根据需要将以下依赖项添加到你的应用程序gradle update: 实现'com.google.firebase:firebase核心:x.x.x' 刚刚查看了您提供的屏幕截图,在这行末尾有额外的:15.0.0删除此项,您就可以开始了: 默认情况下,Android Studio的最新版本将添加一个具有两个核心值的依赖项,如上所述 在同步之前,请确保您有一个核心,例如 implementation 'com.google.firebase:fireba

我试着在这里使用firebase 我的代码


根据需要将以下依赖项添加到你的应用程序gradle update:

实现'com.google.firebase:firebase核心:x.x.x'

刚刚查看了您提供的屏幕截图,在这行末尾有额外的:15.0.0删除此项,您就可以开始了:


默认情况下,Android Studio的最新版本将添加一个具有两个核心值的依赖项,如上所述

在同步之前,请确保您有一个核心,例如

implementation 'com.google.firebase:firebase-database:16.0.1'
而不是

implementation 'com.google.firebase:firebase-database:15.0.0:16.0.1'

更新您的依赖项。
implementation 'com.google.firebase:firebase-database:15.0.0:16.0.1'