Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/192.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android Firebase谷歌键和OAuthClient搞砸了_Android_Firebase_Firebase Authentication - Fatal编程技术网

Android Firebase谷歌键和OAuthClient搞砸了

Android Firebase谷歌键和OAuthClient搞砸了,android,firebase,firebase-authentication,Android,Firebase,Firebase Authentication,我有多台机器可以使用。我在Firebase上有一个Android后端。我试着为同样的东西加上SHA1,结果弄糊涂了。 我最初得到 "failed Sign in Status{statusCode=unknown status code: 12501, resolution=null}" 因为我的应用程序使用了谷歌登录。我最终删除了我所有的密钥和凭据。从那里,我尝试为Firebase项目创建所有凭据 现在,我的Google开发者控制台上有以下内容: API密钥 ServerKey(由Googl

我有多台机器可以使用。我在Firebase上有一个Android后端。我试着为同样的东西加上SHA1,结果弄糊涂了。 我最初得到

"failed Sign in Status{statusCode=unknown status code: 12501, resolution=null}"
因为我的应用程序使用了谷歌登录。我最终删除了我所有的密钥和凭据。从那里,我尝试为Firebase项目创建所有凭据

现在,我的Google开发者控制台上有以下内容: API密钥

  • ServerKey(由Google服务自动创建)
  • AndroidKey(由谷歌服务自动创建)
  • OAuth 2.0客户端ID

  • Android Client for com.mypackage(由谷歌服务自动创建)
  • Web客户端1(我在某些过程中创建了它,并将我的firebase项目url添加为源)
  • Android客户端1(我的旧SHA1适用于不同的操作系统/机器)
  • 注意:我的Firebase项目控制台在项目设置中也显示了一个Web API键,我在Android项目中找不到该键

    在我的*
    googleservices.json中,我从Firebase下载了什么

    • 2、3、4和5可在我的google-services.json中找到

    现在我被困在我的手机登录屏幕上。有人能告诉我从哪里开始吗?我甚至准备再次删除所有密钥并开始。

    在android项目中使用web client 1密钥,而不是android密钥


    还应将google-services.json文件包含在您的应用程序文件夹中。

    @AL您找到解决方案了吗?