我一直在与 firebase 合作来访问我的项目中的活动。一切正常,没有编译错误。但是,在我转到工具 > firebase 后,我可以轻松连接到我的应用程序,但是当我尝试单击添加实时数据库时,它会显示以下内容:
build.gradle will include these new dependencies:
compile 'com.google.firebase:firebase-database:16.0.1:15.0.0'
由于不推荐使用 compile 我使用实现,当我这样做时
实现 'com.google.firebase:firebase-database:16.0.1:15.0.0'
我收到以下错误无法解决:firebase-database-15.0.0
我的同步失败了。
添加jcenter()
您的项目级gradle。
allprojects {
repositories {
google()
jcenter()
}
}
并继续保持@Tomin B所说的那样。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句