Firebase,com.google.firebase:firebase-messaging:17.3.0无法正常工作 [英] Firebase, com.google.firebase:firebase-messaging:17.3.0 Not Working

查看:139
本文介绍了Firebase,com.google.firebase:firebase-messaging:17.3.0无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发现了很多关于此的帖子. 我有2天的时间尝试插入Firebase实施,但没有成功. 我快要疯了,因为我不明白他对我的代码不满意. 有人可以帮我吗?

I found a lot of postings that talk about this. I'm 2 days trying to insert firebase implementation but without success. I'm going crazy because I can not understand what he does not like about my code. can anyone help me?

如您所见,com.google.firebase:firebase-messaging:17.3.0不会以任何方式读取它并报告一个错误. 我尝试使用其他版本,但结果没有改变

As you can see com.google.firebase:firebase-messaging:17.3.0 it is not read in any way and reports an error. I tried to use different versions but the result does not change

我读到它可能是一些未激活的TOOLS SDK,但显然,它不影响...

I read that it could be some non-activated TOOLS SDKs but apparently, it does not affect ...

我不知道如何摆脱困境

如果有人有一个好主意,那就太好了! :)

if someone were to have a good idea, it's welcome! :)

推荐答案

您缺少应用程序build.gradle上的apply plugin: 'com.google.gms.google-services'行.另外,您将需要添加在创建Firebase项目时生成的google-services.json文件.

You are missing the apply plugin: 'com.google.gms.google-services' line on your app build.gradle. Also you will need to add the google-services.json file generated when you create your Firebase project.

参考 https://firebase.google.com/docs/android/setup

这篇关于Firebase,com.google.firebase:firebase-messaging:17.3.0无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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