谷歌登录错误12500

谷歌登录错误12500

我正在尝试将Google登录到我的应用程序中。我没有后端服务器,我只是得到我的应用程序登录谷歌帐户的细节。

我第一次尝试是用Google登录示例但是我得到了一个错误(除了打印下面的堆栈跟踪之外,没有进行任何代码更改)。我只是使用SignInActivity示例,因为我没有后端服务器。

 Exception com.google.android.gms.common.api.ApiException: 12500: 
 at com.google.android.gms.common.internal.zzb.zzz(Unknown Source)
 at com.google.android.gms.auth.api.signin.GoogleSignIn.getSignedInAccountFromIntent(Unknown Source)
 at com.ewise.android.api.MainActivity.onActivityResult(SignInActivity.java:89)     at android.app.Activity.dispatchActivityResult(Activity.java:7010)
 at android.app.ActivityThread.deliverResults(ActivityThread.java:4187)
 at android.app.ActivityThread.handleSendResult(ActivityThread.java:4234)
 at android.app.ActivityThread.-wrap20(ActivityThread.java)
 at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1584)
 at android.os.Handler.dispatchMessage(Handler.java:102)
 at android.os.Looper.loop(Looper.java:154)
 at android.app.ActivityThread.main(ActivityThread.java:6316)
 at java.lang.reflect.Method.invoke(Native Method)
 at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:872)
 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:762)


据我所读,这个问题可能是由SHA 1代.

我遵循完整的导轨但很明显这不管用。

我从Gradle复制了SHA 1签署报告


繁华开满天机
浏览 774回答 3
3回答

ITMISS

只需将GooglePlay服务更新为最新版本(本例中为11720000)。如果您正在使用AVD,Nexus 5和5X图像支持谷歌游戏。一旦模拟器启动并运行,转到ExtendedControls菜单>GooglePlay然后更新。
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Android