Google Play游戏服务示例应用中出现SIGN_IN_REQUIRED错误

时间:2013-06-27 23:17:57

标签: android google-play-games

我知道在控制台中登录TypeANumber应用程序有很多问题,但没有一个能解决我的问题。

这是我第四次重做所有内容并仔细阅读每一步,但仍然无法使其发挥作用。

应用程序,控制台和google api控制台中的程序包名称相同 同样适用于sha1 sertificate。

我甚至检查了导出的apk,看它是'sha1,如故障排除部分所述。 (做了所有的故障排除)

测试访问权限是我用于控制台的唯一gmail帐户以及我在Android设备中使用的帐户。

此外,多人游戏设置和反盗版功能也已关闭

我甚至看到“Google Play游戏服务排名前7位设置错误”几个星期前他们就此做过谈话,但它仍然不起作用!

我不知道可能是什么问题。完成设置一次又一次地反复这么多次我失去了。感谢。

请注意,这适用于示例应用 TypeANumber

这个api会出现其他问题,会出现此错误吗?可能由于某些原因,我的谷歌+帐户或控制台帐户中有一些标志?

完整日志:

06-28 16:41:22.783: D/dalvikvm(32585): Late-enabling CheckJNI
06-28 16:41:22.943: D/BaseGameActivity(32585): onCreate: creating GamesClient
06-28 16:41:22.943: I/dalvikvm(32585): Could not find method android.view.View.getDisplay, referenced from method com.google.android.gms.internal.bn$b.b
06-28 16:41:22.943: W/dalvikvm(32585): VFY: unable to resolve virtual method 3169: Landroid/view/View;.getDisplay ()Landroid/view/Display;
06-28 16:41:22.943: D/dalvikvm(32585): VFY: replacing opcode 0x6e at 0x0009
06-28 16:41:22.943: I/dalvikvm(32585): Could not find method android.view.ViewTreeObserver.removeOnGlobalLayoutListener, referenced from method com.google.android.gms.internal.bn$b.a
06-28 16:41:22.943: W/dalvikvm(32585): VFY: unable to resolve virtual method 3280: Landroid/view/ViewTreeObserver;.removeOnGlobalLayoutListener (Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;)V
06-28 16:41:22.943: D/dalvikvm(32585): VFY: replacing opcode 0x6e at 0x002f
06-28 16:41:22.948: W/PopupManager(32585): You have not specified a View to use as content view for popups. Falling back to the Activity content view which may not work properly in future versions of the API. Use setViewForPopups() to set your content view.
06-28 16:41:23.123: D/dalvikvm(32585): GC_CONCURRENT freed 194K, 4% free 9433K/9735K, paused 1ms+1ms
06-28 16:41:23.138: D/BaseGameActivity(32585): onStart.
06-28 16:41:23.138: D/BaseGameActivity(32585): onStart: connecting clients.
06-28 16:41:23.158: D/BaseGameActivity(32585): Connecting GamesClient.
06-28 16:41:23.228: D/BaseGameActivity(32585): onConnectionFailed: result 4
06-28 16:41:23.228: D/BaseGameActivity(32585): onConnectionFailed: since user didn't initiate sign-in, failing now.
06-28 16:41:23.243: D/dalvikvm(32585): GC_CONCURRENT freed 87K, 3% free 9757K/9991K, paused 1ms+2ms
06-28 16:41:23.298: D/CLIPBOARD(32585): Hide Clipboard dialog at Starting input: finished by someone else... !
06-28 16:41:42.938: D/BaseGameActivity(32585): isGooglePlayServicesAvailable returned 0
06-28 16:41:42.938: D/BaseGameActivity(32585): beginUserInitiatedSignIn: continuing pending sign-in flow.
06-28 16:41:43.023: D/BaseGameActivity(32585): resolveConnectionResult: trying to resolve result: ConnectionResult{statusCode=SIGN_IN_REQUIRED, resolution=PendingIntent{415973a0: android.os.BinderProxy@415556a0}}
06-28 16:41:43.023: D/BaseGameActivity(32585): result has resolution. Starting it.
06-28 16:41:43.108: D/CLIPBOARD(32585): Hide Clipboard dialog at Starting input: finished by someone else... !
06-28 16:41:45.503: D/BaseGameActivity(32585): onActivityResult, req 9001 response 10002
06-28 16:41:45.503: D/BaseGameActivity(32585): responseCode != RESULT_OK, so not reconnecting.
06-28 16:41:45.503: D/BaseGameActivity(32585): giveUp: giving up on connection. Status code: 4
06-28 16:41:45.503: D/BaseGameActivity(32585): Making error dialog for error: 4
06-28 16:41:51.873: D/dalvikvm(32585): Debugger has detached; object registry had 1 entries
06-28 16:42:06.733: D/CLIPBOARD(32585): Hide Clipboard dialog at Starting input: finished by someone else... !
06-28 16:42:07.248: D/BaseGameActivity(32585): onStop: disconnecting clients.

编辑: 当我试图将BaseGameUtil设置为新项目的库时,我得到一个错误说:     在依赖项列表中找到了2个版本的android-support-v4.jar,

它为那两个android-support-v4.jar说了一些关于不同SHA1的东西,这可能会导致TypeANumber应用程序中的错误吗?

EDIT2: 您是否必须将控制台中应用程序的名称与清单文件中的名称相匹配?

1 个答案:

答案 0 :(得分:0)

我建议您先解决此问题:

  

EDIT2:当我试图将BaseGameUtil设置为新的lib时   项目我有一个错误说:找到2个版本的   依赖项列表中的android-support-v4.jar   它说明了这两个不同的SHA1   android-support-v4.jar,这可能会导致TypeANumber中的错误   应用

此问题在Stack Overflow上有详细记录,您可以采用各种方法。当我遇到这个时,我首先确保我自己的项目中包含的副本对我来说是正确的版本(我使用ActionBar Sherlock版本),然后我从BaseGameUtils中删除了支持库的副本。如果您不确定要保留哪个版本的支持库,那么我建议您只需将BaseGameUtils中的版本复制到项目中。

如果您已经解决了这个问题并且仍然遇到问题,我建议您再打开一个问题。祝你好运!