尝试使用Google游戏服务登录时出错 [英] Error when trying to sign in with google game services

查看:307
本文介绍了尝试使用Google游戏服务登录时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将Google游戏服务整合到我的应用程序中,但当我尝试使用测试帐户登录时遇到错误。我遵循了 https://developers.google.com/games/services/中的所有说明培训/登录。我的帐户被添加为测试帐户,签名是eclipse调试签名,SHA1代码已正确添加,我也仔细检查了我的客户端ID,并且在我的代码和开发者控制台中都可以。



但它不起作用,

这就是我在我的日志中得到的结果:

  05-28 16:46:53.402:W / dqi(20004):身份验证错误:无法回应任何这些挑战:{bearer = WWW-Authenticate:Bearer realm =https://www.google.com/accounts/AuthSubRequest,error = invalid_token} 
05-28 16:46:53.402:E / Volley(20004):[1642] il.a:意外响应代码401 for https://www.googleapis.com/games/v1/players/106672873966711781813
05-28 16:46:54.019:W / dqi(20004):身份验证错误:无法响应任何这些挑战:{bearer = WWW-Authenticate:Bearer realm =https://www.google.com/accounts/AuthSubRequest,error = invalid_token}
05-28 16:46:54.019:E / Volley 20004):il.a:http的意外响应代码401 s://www.googleapis.com/games/v1/players/106672873966711781813
05-28 16:46:54.887:I / SBar.NetworkController(521):onReceive:WifiManager.RSSI_CHANGED_ACTION | WIFI_STATE_CHANGED_ACTION | NETWORK_STATE_CHANGED_ACTION收到
05-28 16:46:54.902:I / SBar.NetworkController(521):refreshSignalCluster:wifi:mWifiConnected = true Wifi = stat_sys_wifi_signal_4_fully Activity = stat_sys_wifi_inout辅助功能=Wi-Fi三条线。
05-28 16:46:55.355:W / dqi(20004):身份验证错误:无法回应任何这些挑战:{bearer = WWW-Authenticate:Bearer realm =https://www.google .com / accounts / AuthSubRequest,error = invalid_token}
05-28 16:46:55.355:E / Volley(20004):[1645] il.a:用于https:// www的意外响应代码401。 googleapis.com/games/v1/players/106672873966711781813
05-28 16:46:55.965:W / dqi(20004):身份验证错误:无法回应以下任何挑战:{bearer = WWW-Authenticate: Bearer realm =https://www.google.com/accounts/AuthSubRequest,error = invalid_token}
05-28 16:46:55.965:E / Volley(20004):[1645] il.a:意外的响应代码401 for https://www.googleapis.com/games/v1/players/106672873966711781813
05-28 16:46:56.285:D / ModemStatsService(12354):onSignalStrengthsChanged
05-28 16:46:56.285:D / ModemStatsService(12354):GSM,mRssi = -85
05-28 16:46:56.480:D / Tethering(433):interfaceLinkStateChanged wlan0,true
05-28 16:46:56.480:D / Teth ering(433):interfaceStatusChanged wlan0,true
05-28 16:46:56.496:D / LSAPP_Beacon(11054):notifyAllCallers:通知调用者POI = null调用者:Handler(com.motorola.contextual.virtualsensor.locationsensor。 LocationDetection $ MessageHandler){42942f38}
05-28 16:46:56.496:D / WifiScanReceiver(11831):intent.getAction():android.net.wifi.SCAN_RESULTS
05-28 16:46 :56.496:D / WifiScanReceiver(11831):找到6个扫描网络
05-28 16:46:56.496:D / WifiIntentMapper(11831):isWifiLoggedIn:false
05-28 16: 46:56.527:E / LSApp_App(11054):将消息发送到处理程序(com.motorola.contextual.virtualsensor.locationsensor.LocationDetection $ MessageHandler){42942f38}:msg:1010002
05-28 16:46:56.535: E / SignInIntentService(20004):用户尚未完成注册。
05-28 16:46:56.535:E / SignInIntentService(20004):aol
05-28 16:46:56.535:E / SignInIntentService(20004):at ajy.a(SourceFile:108)
05-28 16:46:56.535:E / SignInIntentService(20004):at abm.a(SourceFile:213)
05-28 16:46:56.535:E / SignInIntentService(20004):at abm.a(SourceFile:194)
05-28 16:46:56.535:E / SignInIntentService(20004):at aav.a(SourceFile:486)
05-28 16:46:56.535: E / SignInIntentService(20004):at aqu.a(SourceFile:221)
05-28 16:46:56.535:E / SignInIntentService(20004):at com.google.android.gms.games.service.GamesSignInIntentService .onHandleIntent(SourceFile:343)
05-28 16:46:56.535:E / SignInIntentService(20004):at android.app.IntentService $ ServiceHandler.handleMessage(IntentService.java:65)
05- 28 16:46:56.535:E / SignInIntentService(20004):at android.os.Handler.dispatchMessage(Handler.java:99)
05-28 16:46:56.535:E / SignInIntentService(20004):at android.os.Looper.loop(Looper.java:137)
05-28 16:46:56.535:E / S ignInIntentService(20004):at android.os.HandlerThread.run(HandlerThread.java:60)

任何人可以帮忙吗? $ b

  • 使用该用户登录到plus.google.com并查看它是否有效。如果显示注册Google+屏幕,则是因为此用户没有启用Google+,因此无法登录游戏。这个应该不会发生(相反,用户应该看到设备上的Google+注册流程) - 我只是在这里彻底排除这种可能性。


  • 如果游戏尚未发布,请确保用户出现在Google Play开发者控制台的测试人员列表中。要做到这一点,请转到Google Play开发者控制台,从列表中选择您的应用,然后转到测试标签,并确保将用户添加到测试人员列表中。


  • 另外,请检查通常的嫌疑犯:


    • 是否包名并且您的客户端ID上的证书指纹与您在应用中使用的指纹相匹配?

    • 您是否在AndroidManifst.xml中包含游戏元数据标签?



    i'm attempting to integrate google game services into my application but i get an error when i try to sign in with a test account. I have followed all their instructions from https://developers.google.com/games/services/training/signin . My account is added as a test account, the signature is the eclipse debug signature, the SHA1 code is properly added, i also double check my client id and it is ok both in my code and on the developer console.

    but it does not work,

    this is what i get in my log:

    05-28 16:46:53.402: W/dqi(20004): Authentication error: Unable to respond to any of these challenges: {bearer=WWW-Authenticate: Bearer realm="https://www.google.com/accounts/AuthSubRequest", error=invalid_token}
    05-28 16:46:53.402: E/Volley(20004): [1642] il.a: Unexpected response code 401 for https://www.googleapis.com/games/v1/players/106672873966711781813
    05-28 16:46:54.019: W/dqi(20004): Authentication error: Unable to respond to any of these challenges: {bearer=WWW-Authenticate: Bearer realm="https://www.google.com/accounts/AuthSubRequest", error=invalid_token}
    05-28 16:46:54.019: E/Volley(20004): [1642] il.a: Unexpected response code 401 for https://www.googleapis.com/games/v1/players/106672873966711781813
    05-28 16:46:54.887: I/SBar.NetworkController(521): onReceive: WifiManager.RSSI_CHANGED_ACTION | WIFI_STATE_CHANGED_ACTION | NETWORK_STATE_CHANGED_ACTION Received
    05-28 16:46:54.902: I/SBar.NetworkController(521): refreshSignalCluster: wifi: mWifiConnected=true Wifi=stat_sys_wifi_signal_4_fully Activity=stat_sys_wifi_inout Accessibility="Wi-Fi three bars."
    05-28 16:46:55.355: W/dqi(20004): Authentication error: Unable to respond to any of these challenges: {bearer=WWW-Authenticate: Bearer realm="https://www.google.com/accounts/AuthSubRequest", error=invalid_token}
    05-28 16:46:55.355: E/Volley(20004): [1645] il.a: Unexpected response code 401 for https://www.googleapis.com/games/v1/players/106672873966711781813
    05-28 16:46:55.965: W/dqi(20004): Authentication error: Unable to respond to any of these challenges: {bearer=WWW-Authenticate: Bearer realm="https://www.google.com/accounts/AuthSubRequest", error=invalid_token}
    05-28 16:46:55.965: E/Volley(20004): [1645] il.a: Unexpected response code 401 for https://www.googleapis.com/games/v1/players/106672873966711781813
    05-28 16:46:56.285: D/ModemStatsService(12354): onSignalStrengthsChanged
    05-28 16:46:56.285: D/ModemStatsService(12354): GSM, mRssi=-85
    05-28 16:46:56.480: D/Tethering(433): interfaceLinkStateChanged wlan0, true
    05-28 16:46:56.480: D/Tethering(433): interfaceStatusChanged wlan0, true
    05-28 16:46:56.496: D/LSAPP_Beacon(11054): notifyAllCallers : notify caller POI=null caller:Handler (com.motorola.contextual.virtualsensor.locationsensor.LocationDetection$MessageHandler) {42942f38}
    05-28 16:46:56.496: D/WifiScanReceiver(11831): intent.getAction(): android.net.wifi.SCAN_RESULTS
    05-28 16:46:56.496: D/WifiScanReceiver(11831): Found 6 network(s) in scan
    05-28 16:46:56.496: D/WifiIntentMapper(11831): isWifiLoggedIn: false
    05-28 16:46:56.527: E/LSApp_App(11054): Sending Message to Handler (com.motorola.contextual.virtualsensor.locationsensor.LocationDetection$MessageHandler) {42942f38}: msg :1010002
    05-28 16:46:56.535: E/SignInIntentService(20004): User has not completed registration.
    05-28 16:46:56.535: E/SignInIntentService(20004): aol
    05-28 16:46:56.535: E/SignInIntentService(20004):   at ajy.a(SourceFile:108)
    05-28 16:46:56.535: E/SignInIntentService(20004):   at abm.a(SourceFile:213)
    05-28 16:46:56.535: E/SignInIntentService(20004):   at abm.a(SourceFile:194)
    05-28 16:46:56.535: E/SignInIntentService(20004):   at aav.a(SourceFile:486)
    05-28 16:46:56.535: E/SignInIntentService(20004):   at aqu.a(SourceFile:221)
    05-28 16:46:56.535: E/SignInIntentService(20004):   at com.google.android.gms.games.service.GamesSignInIntentService.onHandleIntent(SourceFile:343)
    05-28 16:46:56.535: E/SignInIntentService(20004):   at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)
    05-28 16:46:56.535: E/SignInIntentService(20004):   at android.os.Handler.dispatchMessage(Handler.java:99)
    05-28 16:46:56.535: E/SignInIntentService(20004):   at android.os.Looper.loop(Looper.java:137)
    05-28 16:46:56.535: E/SignInIntentService(20004):   at android.os.HandlerThread.run(HandlerThread.java:60)
    

    Anyone can help?

    解决方案

    Please try the following:

    1. Log in with that user into plus.google.com and see if it works. If it shows a "Sign up for Google+" screen, it's because this user doesn't have Google+ enabled and thus can't log into the game. This should not happen (instead, the user should see the Google+ sign up flow on the device) -- I'm just being thorough here to exclude this possibility.

    2. If the game is not yet published, make sure the user appears in the list of testers in the Google Play Developer Console. To do this, go to the Google Play Developer Console, pick your app from the list, go to the Testing tab and make sure you add the user to the list of testers.

    Also, check the usual suspects:

    • does the package name and certificate fingerprint on your client ID match the ones you are using on your app?

    • did you include the games meta-data tag in AndroidManifst.xml?

    这篇关于尝试使用Google游戏服务登录时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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