【发布时间】:2013-06-25 15:25:03
【问题描述】:
我知道在控制台中登录 TypeANumber 应用程序有很多问题,但都没有解决我的问题。
这是我第四次重做所有事情并仔细阅读每一步但仍然无法正常工作。
app、控制台和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 设置为 新项目 的库时,我收到一条错误消息: 在依赖列表中找到了2个版本的android-support-v4.jar,
它说明了这两个 android-support-v4.jar 的不同 SHA1,这会导致 TypeANumber 应用程序中的错误吗?
编辑2: 您是否还必须将控制台中的应用名称与清单文件中的名称相匹配?
【问题讨论】: