[Google Play游戏服务示例应用程序中的SIGN_IN_REQUIRED错误

问题描述 投票:0回答:1

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

这是我第四次重做所有内容并仔细阅读每个步骤,但仍然无法使它正常工作。

包名称在应用程序,控制台和google api控制台中是相同的sha1证书也是如此。

我什至检查了导出的apk,以查看它是否为sha1,如“疑难解答”部分所述。 (是否已完成所有故障排除)

测试访问权限是我唯一用于控制台的gmail帐户,也是我在android设备中拥有的一个。

还关闭了多人游戏设置和反盗版

我什至看到“ Google Play游戏服务设置前7大错误”几周前他们谈到了这一点,但仍然无法解决!

我不知道可能是什么问题。一遍又一遍地完成安装过程,以至于我失去了很多次。谢谢。

请注意,这是针对示例应用程序TypeANumber

此api是否会有其他问题会导致此错误?也许出于某些原因,我的google +帐户或控制台帐户中有一些标志?

完整日志:

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设置为new project的库时,出现错误消息:在依赖项列表中找到2个版本的android-support-v4.jar,

它为这两个android-support-v4.jar讲述了关于不同SHA1的一些信息,这可以解决TypeANumber应用程序中的错误吗?

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

android google-play-games
1个回答
0
投票

我建议您先解决此问题:

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

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

当您解决此问题后,如果仍然有问题,建议您再提出一个问题。祝你好运!

© www.soinside.com 2019 - 2024. All rights reserved.