Firebase助手错误:无法解决:firebase-messaging-15.0.0 [英] Firebase assistants error: Failed to resolve: firebase-messaging-15.0.0

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

问题描述

当我尝试使用Firebase助手连接到Cloud Messaging时,我当前遇到错误.

I am currently facing the error when i try to connect to the Cloud Messaging using firebase assistants.

无法解决:firebase-messaging-15.0.0

Failed to resolve: firebase-messaging-15.0.0

我在线搜索,解决方法是删除依赖项中的最后几个数字.但是,当我尝试这样做时,它解决了该错误,但是在Firebase助手上,它不再显示正确设置了依赖项".因此,这是否意味着我未连接到Firebase云消息传递?

I search online, and the solution was to remove the last few digits in the dependency. However, when i tried that, it solved the error, but on the firebase assistants, it did not show "dependency being set up correctly" anymore. Hence, does this mean that i am not connected to the firebase cloud messaging?

尝试的方法: 从实施"com.google.firebase:firebase-messaging:17.0.0:15.0.0"更改为实施"com.google.firebase:firebase-messaging:17.0.0"

Method tried: change from implementation 'com.google.firebase:firebase-messaging:17.0.0:15.0.0' to implementation 'com.google.firebase:firebase-messaging:17.0.0'

在使用在线方法删除最后一个的依赖项之前,正确设置的依赖项为绿色.依赖性的几位数

推荐答案

您遇到以下错误:

无法解决:firebase-messaging-15.0.0

Failed to resolve: firebase-messaging-15.0.0

因为您在代码中使用了错误的依赖关系.要解决此问题,请更改以下代码行:

Because you are using a wrong dependency in your code. To solve this, please change the following line of code:

implementation 'com.google.firebase:firebase-messaging:17.0.0:15.0.0'

implementation 'com.google.firebase:firebase-messaging:17.3.4'

因为这样的版本17.0.0:15.0.0不存在. 在这里,您可以找到更多信息.

Because such a version 17.0.0:15.0.0 does not exist. Here you can find more informations.

在顶级build.gradle文件中,请确保具有最新版本的Google服务插件和Gradle:

In your top level build.gradle file please be sure to have the latest version of Google Service plugin and Gradle:

classpath 'com.android.tools.build:gradle:3.2.1'
classpath 'com.google.gms:google-services:4.2.0'

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

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