![](/img/trans.png)
[英]How do I access the children in my firebase database and display them in the activity according to the listview item selected
[英]how do I access firebase database for login activity in android studio
错误:无法解决:com.google.firebase:firebase-database:17.2.2
如果我尝试添加 firebase 数据库的实现并同步它,我会收到这样的错误消息。 而且我没有 firebase 核心实现,而是我有 firebase 分析实现。 谁能帮我同步 firebase 数据库
确保将maven { url "https://maven.google.com" }
添加到根级build.gradle
文件
allprojects {
repositories {
jcenter()
maven {
url "https://maven.google.com"
}
}
}
并在顶级 gradle 文件中使用最新版本的谷歌播放服务
classpath 'com.google.gms:google-services:4.0.2'
将实时数据库 Android 库的依赖项添加到您的模块(应用程序级)Gradle 文件(通常是app/build.gradle
):
implementation 'com.google.firebase:firebase-database:19.3.0'
implementation 'com.google.firebase:firebase-database-ktx:19.3.0'
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.