无法解决:firebase-database-15.0.0 [英] Failed to resolve: firebase-database-15.0.0

查看:95
本文介绍了无法解决:firebase-database-15.0.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用助手连接Firebase实时数据库 添加firebase数据库的依赖项时,显示此错误:

connecting firebase real-time database with assistant when adding the dependencies of firebase database this error is showing:

Failed to resolve: firebase-database-15.0.0

这也发生在身份验证中

我的Android Studio 3.2版本9月18日构建

My android studio version 3.2 build September 18

推荐答案

新版本的Android Studio中有一个令人讨厌的错误(我在Windows和Mac上都看到过3.2.1或更高版本). 如果您通过工具自动集成了Firebase,Thןד会为您提供一个不需要的附件,该附件会反编译程序.

There's an annoying bug in the new versions of Android Studio (I've seen versions 3.2.1 or higher on both Windows and Mac). if you integrate firebase automatically from tools, Thןד gives you an unwanted add-on that de-compile the program.

例如:

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

代替:

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

只需在':'之后添加不必要的多余内容

Just drop the unnecessary extra after the ':'

请注意,该示例适用于数据库 如果您还需要其他东西,请替换库中的单词数据库,例如广告.

Note that the example is for a database If you need something else substitute the word database in your library, for example ads.

这篇关于无法解决:firebase-database-15.0.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆