GitKit Android快速入门失败"在与谷歌"与错误code:9 [英] GitKit Android Quick Start fails "Sign in with Google" with Error Code: 9

查看:191
本文介绍了GitKit Android快速入门失败"在与谷歌"与错误code:9的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图得到GitKit Android快速入门示例工作。在注册并登录使用电子邮件做工精细,据我所看到的,所以没有Facebook登录,但每当我尝试使用谷歌登入,选择我的谷歌帐户后,我得到一个面包错误code:9 。调试时,展望GoogleIdpClient我可以看到错误被抛出,因为服务器响应

I tried getting the GitKit Android Quick Start example to work. The SignUp and Login with Email work fine as far as I can see, so does the Facebook login, but whenever I try to use the Google signin, after choosing my Google account, I get a Toast "Error Code: 9". When debugging and looking into the GoogleIdpClient I can see that the error is thrown because the server responds with

{"error":{"errors":[{"domain":"global","reason":"backendError","message":"Error code: 9"}],"code":503,"message":"Error code: 9"}}

不过我真的不认为谷歌IDP服务不可用这整个时间..

But I don't really believe that the google idp service is unavailable this whole time ..

当我使用Android客户端ID输入入快速入门占位符(而不是Web客户端ID,由本教程问)我得到的理由未知一个GoogleAuthException。

When I use the Android Client ID to input it into the quickstart placeholders (instead of the Web Client ID, as asked by the tutorial) I get a GoogleAuthException with reason "Unknown".

我没有运行Web服务器背后的一切到目前为止,也许GitKit不喜欢无回调终结点?

I don't have a webserver running behind everything so far, so maybe GitKit doesn't like having no callback endpoints?

任何提示或想法?

谢谢,约翰内斯

推荐答案

据的 https://developers.google.com/+/web/api/rest/auth-migration ,谷歌已经迁移其登录到Google+登录,即使用户没有使用Google+ 。
它可以通过设置

According to https://developers.google.com/+/web/api/rest/auth-migration, Google has already migrated its sign-in to Google+ Sign In, even if the user doesn't use Google+. It is possible to switch to new Google+ Sign In by setting

<meta-data
        android:name="identitytoolkit.use_google_plus"
        android:value="true" />

的Andr​​oidManifest.xml 。据<一个href=\"https://developers.google.com/identity/toolkit/android/reference/com/google/identitytoolkit/GitkitClientBuilder\"相对=nofollow>文档,它使Google+登录在为谷歌帐户。

in the AndroidManifest.xml. According to documentation, it enables Google+ Sign In for Google accounts.

此设置为true后,我能得到 - 确认 - Google+信息权限对话框

After setting this to true, I was able to get - and confirm - the Google+ permission dialog.

如果你得到错误 INVALID_IDP_RESPONSE 之后,那么你必须启用Google+ API在你的谷歌开发者控制台

If you get error INVALID_IDP_RESPONSE afterwards, then you have to enable Google+ API in your Google Developers Console.

这篇关于GitKit Android快速入门失败&QUOT;在与谷歌&QUOT;与错误code:9的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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