我正在开发一个Android应用程序,它使用Firebase身份验证,数据库和存储.一切正常,直到这个错误消息开始出现在logcat中.(我没有在firebae控制台上篡改任何配置)
E/FirebaseInstanceId: Token retrieval failed: SERVICE_NOT_AVAILABLE
Run Code Online (Sandbox Code Playgroud)
即使我已经评论了所有与firebase相关的代码,也会显示此错误消息.
因此,我无法继续进行身份验证和其他firebase相关的事情.
是的,我已连接到互联网,并且还从Firebase控制台获得了一个新的Google-Services.json文件,但它完全没有任何区别.
我在应用程序启动状态日志上收到一条错误消息,例如
W/Firebase-Installations: Error when communicating with the Firebase Installations server API. HTTP response: [400 Bad Request: {
"error": {
"code": 400,
"message": "API key not valid. Please pass a valid API key.",
"status": "INVALID_ARGUMENT",
"details": [
{
"@type": "type.googleapis.com/google.rpc.Help",
"links": [
{
"description": "Google developers console",
"url": "https://console.developers.google.com"
}
]
}
]
}
}
]
2020-04-27 12:42:34.621 22226-23596/in.co.androidapp.g7 E/Firebase-Installations: Firebase Installations can not communicate with Firebase server APIs due to invalid configuration. Please update your Firebase initialization process and set …Run Code Online (Sandbox Code Playgroud) firebase android-wear-notification flutter firebase-cloud-messaging wear-os