FirebaseInstanceId令牌检索失败SERVICE_NOT_AVAILABLE [英] FirebaseInstanceId Token retrieval failed SERVICE_NOT_AVAILABLE

查看:1354
本文介绍了FirebaseInstanceId令牌检索失败SERVICE_NOT_AVAILABLE的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个Android应用,它使用Firebase身份验证,数据库和存储.一切正常,直到此错误消息开始在logcat中显示. (我没有在firebae控制台上篡改任何配置)

I'm working on an android app, it uses Firebase Authentication, Database and Storage. It was all working fine until this error message started to show up in logcat. (I did not tamper with any configs at firebae console)

E/FirebaseInstanceId: Token retrieval failed: SERVICE_NOT_AVAILABLE

即使我已经注释了所有与Firebase相关的代码,也会显示此错误消息.

因此,我无法继续进行身份验证和其他与Firebase相关的内容.
是的,我已经连接到互联网,并且还从Firebase控制台获得了一个新的Google-Services.json文件,但它没有任何区别.

this error message shows even when I have commented all firebase related code.

Therefore I'm unable to proceed with authentication and other firebase related stuff.
Yes, i'm connected to internet and also have gotten a new Google-Services.json file from Firebase Console but it has made no difference at all.

推荐答案

AVD Manager中的立即冷启动"设备对我有用.

"Cold Boot Now" Device in AVD Manager worked for me.

更新模拟器并进行冷启动后,它有所帮助. – parohy 4月5日9:22

After updating emulators and than doing the cold boot it helped. – parohy Apr 5 at 9:22

这篇关于FirebaseInstanceId令牌检索失败SERVICE_NOT_AVAILABLE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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