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

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

问题描述

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

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 firebase console)

E/FirebaseInstanceId: Token retrieval failed: SERVICE_NOT_AVAILABLE

即使我对所有与 firebase 相关的代码进行了评论,此错误消息也会显示.

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

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

Therefore I'm unable to proceed with authentication and other firebase-related stuff.
Yes, I'm connected to the 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"设备对我有用.

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

在更新模拟器并进行冷启动之后,它有所帮助.– 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天全站免登陆