0

我一直在尝试运行名为 buttonclicker2000 的示例:我设置了所有内容,它可以在真实设备上运行。但是在模拟器 4.2.2 上尝试登录时出现未知错误。

这是logcat 有人可以帮我吗?

07-17 20:40:41.293: E/SurfaceFlinger(37): ro.sf.lcd_density must be defined as a build property
07-17 20:40:50.233: E/SurfaceFlinger(37): ro.sf.lcd_density must be defined as a build property
07-17 20:40:51.743: E/SurfaceFlinger(37): ro.sf.lcd_density must be defined as a build property
07-17 20:40:51.873: E/SurfaceFlinger(37): ro.sf.lcd_density must be defined as a build property
07-17 20:41:03.104: E/Volley(748): [91] il.a: Unexpected response code 403 for https://www.googleapis.com/games/v1/players/me
07-17 20:41:03.294: I/Choreographer(1780): Skipped 38 frames!  The application may be doing too much work on its main thread.
07-17 20:41:03.384: I/Choreographer(1348): Skipped 54 frames!  The application may be doing too much work on its main thread.
07-17 20:41:03.554: E/Volley(748): [91] il.a: Unexpected response code 403 for https://www.googleapis.com/games/v1/players/me
07-17 20:41:03.614: E/SignInIntentService(748): Access Not Configured
07-17 20:41:03.614: E/SignInIntentService(748): aol
07-17 20:41:03.614: E/SignInIntentService(748):     at ajy.a(SourceFile:108)
07-17 20:41:03.614: E/SignInIntentService(748):     at abm.a(SourceFile:213)
07-17 20:41:03.614: E/SignInIntentService(748):     at abm.a(SourceFile:194)
07-17 20:41:03.614: E/SignInIntentService(748):     at aav.a(SourceFile:486)
07-17 20:41:03.614: E/SignInIntentService(748):     at aqu.a(SourceFile:221)
07-17 20:41:03.614: E/SignInIntentService(748):     at com.google.android.gms.games.service.GamesSignInIntentService.onHandleIntent(SourceFile:343)
07-17 20:41:03.614: E/SignInIntentService(748):     at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)
07-17 20:41:03.614: E/SignInIntentService(748):     at android.os.Handler.dispatchMessage(Handler.java:99)
07-17 20:41:03.614: E/SignInIntentService(748):     at android.os.Looper.loop(Looper.java:137)
07-17 20:41:03.614: E/SignInIntentService(748):     at android.os.HandlerThread.run(HandlerThread.java:60)
07-17 20:41:04.594: I/Choreographer(580): Skipped 76 frames!  The application may be doing too much work on its main thread.
07-17 20:41:05.063: D/ButtonClicker2000(1780): Sign-in failed.
07-17 20:41:05.083: I/Choreographer(1780): Skipped 189 frames!  The application may be doing too much work on its main thread.
07-17 20:41:05.443: E/SurfaceFlinger(37): ro.sf.lcd_density must be defined as a build property
07-17 20:41:05.613: I/Choreographer(1780): Skipped 127 frames!  The application may be doing too much work on its main thread.
07-17 20:41:06.853: D/dalvikvm(1348): GC_EXPLICIT freed 83K, 36% free 2605K/4040K, paused 5ms+8ms, total 701ms
07-17 20:41:06.863: E/StrictMode(1348): class com.google.android.gms.games.ui.signin.SignInActivity; instances=2; limit=1
07-17 20:41:06.863: E/StrictMode(1348): android.os.StrictMode$InstanceCountViolation: class com.google.android.gms.games.ui.signin.SignInActivity; instances=2; limit=1
07-17 20:41:06.863: E/StrictMode(1348):     at android.os.StrictMode.setClassInstanceLimit(StrictMode.java:1)

编辑完整的 logcat,从任何地方的所有其他设备注销

07-17 22:01:00.997: I/ActivityManager(296): START u0 {cmp=com.google.android.gms/.games.ui.signin.SignInActivity (has extras)} from pid -1
07-17 22:01:01.007: W/WindowManager(296): Failure taking screenshot for (246x410) to layer 21010
07-17 22:01:01.187: E/SurfaceFlinger(37): ro.sf.lcd_density must be defined as a build property
07-17 22:01:01.367: I/Choreographer(1266): Skipped 86 frames!  The application may be doing too much work on its main thread.
07-17 22:01:01.737: I/Choreographer(1283): Skipped 45 frames!  The application may be doing too much work on its main thread.
07-17 22:01:01.937: E/SurfaceFlinger(37): ro.sf.lcd_density must be defined as a build property
07-17 22:01:01.948: I/Choreographer(296): Skipped 78 frames!  The application may be doing too much work on its main thread.
07-17 22:01:02.007: I/Choreographer(296): Skipped 41 frames!  The application may be doing too much work on its main thread.
07-17 22:01:02.018: I/Choreographer(1283): Skipped 44 frames!  The application may be doing too much work on its main thread.
07-17 22:01:02.547: I/Choreographer(296): Skipped 44 frames!  The application may be doing too much work on its main thread.
07-17 22:01:02.557: I/ActivityManager(296): Displayed com.google.android.gms/.games.ui.signin.SignInActivity: +1s313ms
07-17 22:01:02.627: I/Choreographer(1283): Skipped 95 frames!  The application may be doing too much work on its main thread.
07-17 22:01:02.687: I/Choreographer(1266): Skipped 44 frames!  The application may be doing too much work on its main thread.
07-17 22:01:03.237: I/Choreographer(1283): Skipped 65 frames!  The application may be doing too much work on its main thread.
07-17 22:01:03.287: I/Choreographer(1266): Skipped 67 frames!  The application may be doing too much work on its main thread.
07-17 22:01:03.627: I/Choreographer(1266): Skipped 87 frames!  The application may be doing too much work on its main thread.
07-17 22:01:03.817: I/Choreographer(1266): Skipped 48 frames!  The application may be doing too much work on its main thread.
07-17 22:01:04.057: I/Choreographer(1266): Skipped 37 frames!  The application may be doing too much work on its main thread.
07-17 22:01:04.107: I/Choreographer(1283): Skipped 51 frames!  The application may be doing too much work on its main thread.
07-17 22:01:04.237: I/Choreographer(1266): Skipped 41 frames!  The application may be doing too much work on its main thread.
07-17 22:01:04.267: I/Choreographer(1283): Skipped 40 frames!  The application may be doing too much work on its main thread.
07-17 22:01:04.417: I/Choreographer(1266): Skipped 47 frames!  The application may be doing too much work on its main thread.
07-17 22:01:04.507: I/Choreographer(1283): Skipped 41 frames!  The application may be doing too much work on its main thread.
07-17 22:01:04.597: I/Choreographer(1266): Skipped 43 frames!  The application may be doing too much work on its main thread.
07-17 22:01:04.727: I/Choreographer(1283): Skipped 55 frames!  The application may be doing too much work on its main thread.
07-17 22:01:04.867: I/Choreographer(1283): Skipped 35 frames!  The application may be doing too much work on its main thread.
07-17 22:01:05.058: I/Choreographer(1283): Skipped 38 frames!  The application may be doing too much work on its main thread.
07-17 22:01:05.197: I/Choreographer(1283): Skipped 35 frames!  The application may be doing too much work on its main thread.
07-17 22:01:05.217: I/Choreographer(1266): Skipped 34 frames!  The application may be doing too much work on its main thread.
07-17 22:01:05.377: I/Choreographer(1283): Skipped 49 frames!  The application may be doing too much work on its main thread.
07-17 22:01:05.547: I/Choreographer(1283): Skipped 40 frames!  The application may be doing too much work on its main thread.
07-17 22:01:05.697: D/dalvikvm(296): GC_CONCURRENT freed 683K, 56% free 5765K/13000K, paused 59ms+182ms, total 1675ms
07-17 22:01:05.717: I/Choreographer(1283): Skipped 44 frames!  The application may be doing too much work on its main thread.
07-17 22:01:05.807: I/Choreographer(1266): Skipped 30 frames!  The application may be doing too much work on its main thread.
07-17 22:01:05.877: I/Choreographer(1283): Skipped 40 frames!  The application may be doing too much work on its main thread.
07-17 22:01:05.947: I/Choreographer(1266): Skipped 32 frames!  The application may be doing too much work on its main thread.
07-17 22:01:06.017: I/Choreographer(1283): Skipped 35 frames!  The application may be doing too much work on its main thread.
07-17 22:01:06.087: I/Choreographer(1266): Skipped 33 frames!  The application may be doing too much work on its main thread.
07-17 22:01:06.177: I/Choreographer(1283): Skipped 40 frames!  The application may be doing too much work on its main thread.
07-17 22:01:06.317: I/Choreographer(1283): Skipped 36 frames!  The application may be doing too much work on its main thread.
07-17 22:01:07.048: I/Choreographer(1283): Skipped 35 frames!  The application may be doing too much work on its main thread.
07-17 22:01:07.307: I/Choreographer(1283): Skipped 39 frames!  The application may be doing too much work on its main thread.
07-17 22:01:07.397: I/Choreographer(1266): Skipped 32 frames!  The application may be doing too much work on its main thread.
07-17 22:01:07.527: I/Choreographer(1283): Skipped 53 frames!  The application may be doing too much work on its main thread.
07-17 22:01:07.547: I/Choreographer(1266): Skipped 32 frames!  The application may be doing too much work on its main thread.
07-17 22:01:07.697: I/Choreographer(1266): Skipped 42 frames!  The application may be doing too much work on its main thread.
07-17 22:01:07.728: I/Choreographer(1283): Skipped 51 frames!  The application may be doing too much work on its main thread.
07-17 22:01:07.837: I/Choreographer(1266): Skipped 40 frames!  The application may be doing too much work on its main thread.
07-17 22:01:07.877: D/dalvikvm(716): GC_CONCURRENT freed 333K, 12% free 3432K/3892K, paused 8ms+145ms, total 589ms
07-17 22:01:07.948: I/Choreographer(1283): Skipped 55 frames!  The application may be doing too much work on its main thread.
07-17 22:01:07.987: I/Choreographer(1266): Skipped 37 frames!  The application may be doing too much work on its main thread.
07-17 22:01:08.118: I/Choreographer(1283): Skipped 43 frames!  The application may be doing too much work on its main thread.
07-17 22:01:08.327: I/Choreographer(1283): Skipped 53 frames!  The application may be doing too much work on its main thread.
07-17 22:01:08.627: I/Choreographer(1266): Skipped 41 frames!  The application may be doing too much work on its main thread.
07-17 22:01:08.698: I/Choreographer(1283): Skipped 39 frames!  The application may be doing too much work on its main thread.
07-17 22:01:08.847: I/Choreographer(1266): Skipped 55 frames!  The application may be doing too much work on its main thread.
07-17 22:01:08.987: I/Choreographer(1266): Skipped 38 frames!  The application may be doing too much work on its main thread.
07-17 22:01:09.127: I/Choreographer(1266): Skipped 45 frames!  The application may be doing too much work on its main thread.
07-17 22:01:09.237: I/Choreographer(1283): Skipped 49 frames!  The application may be doing too much work on its main thread.
07-17 22:01:09.297: I/Choreographer(1266): Skipped 38 frames!  The application may be doing too much work on its main thread.
07-17 22:01:09.397: I/Choreographer(1283): Skipped 41 frames!  The application may be doing too much work on its main thread.
07-17 22:01:09.427: E/Volley(716): [76] il.a: Unexpected response code 403 for https://www.googleapis.com/games/v1/players/me
07-17 22:01:09.447: I/Choreographer(1266): Skipped 32 frames!  The application may be doing too much work on its main thread.
07-17 22:01:09.537: I/Choreographer(1283): Skipped 36 frames!  The application may be doing too much work on its main thread.
07-17 22:01:09.687: E/Volley(716): [76] il.a: Unexpected response code 403 for https://www.googleapis.com/games/v1/players/me
07-17 22:01:09.777: E/SignInIntentService(716): Access Not Configured
07-17 22:01:09.777: E/SignInIntentService(716): aol
07-17 22:01:09.777: E/SignInIntentService(716):     at ajy.a(SourceFile:108)
07-17 22:01:09.777: E/SignInIntentService(716):     at abm.a(SourceFile:213)
07-17 22:01:09.777: E/SignInIntentService(716):     at abm.a(SourceFile:194)
07-17 22:01:09.777: E/SignInIntentService(716):     at aav.a(SourceFile:486)
07-17 22:01:09.777: E/SignInIntentService(716):     at aqu.a(SourceFile:221)
07-17 22:01:09.777: E/SignInIntentService(716):     at com.google.android.gms.games.service.GamesSignInIntentService.onHandleIntent(SourceFile:343)
07-17 22:01:09.777: E/SignInIntentService(716):     at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)
07-17 22:01:09.777: E/SignInIntentService(716):     at android.os.Handler.dispatchMessage(Handler.java:99)
07-17 22:01:09.777: E/SignInIntentService(716):     at android.os.Looper.loop(Looper.java:137)
07-17 22:01:09.777: E/SignInIntentService(716):     at android.os.HandlerThread.run(HandlerThread.java:60)
07-17 22:01:09.917: I/Choreographer(1266): Skipped 44 frames!  The application may be doing too much work on its main thread.
07-17 22:01:09.967: I/Choreographer(1283): Skipped 55 frames!  The application may be doing too much work on its main thread.
07-17 22:01:10.107: I/Choreographer(1266): Skipped 44 frames!  The application may be doing too much work on its main thread.
07-17 22:01:10.187: E/LoadSelfFragment(1283): Unable to sign in - application does not have a registered client ID
07-17 22:01:10.197: W/WindowManager(296): Failure taking screenshot for (246x410) to layer 21020
07-17 22:01:10.227: I/Choreographer(1283): Skipped 65 frames!  The application may be doing too much work on its main thread.
07-17 22:01:10.267: I/Choreographer(1266): Skipped 40 frames!  The application may be doing too much work on its main thread.
07-17 22:01:10.408: I/Choreographer(1266): Skipped 38 frames!  The application may be doing too much work on its main thread.
07-17 22:01:10.537: I/Choreographer(1266): Skipped 39 frames!  The application may be doing too much work on its main thread.
07-17 22:01:10.937: I/Choreographer(1283): Skipped 184 frames!  The application may be doing too much work on its main thread.
07-17 22:01:10.947: I/Choreographer(689): Skipped 127 frames!  The application may be doing too much work on its main thread.
07-17 22:01:11.087: I/Choreographer(1283): Skipped 31 frames!  The application may be doing too much work on its main thread.
07-17 22:01:11.497: D/dalvikvm(1266): GC_CONCURRENT freed 425K, 12% free 4125K/4676K, paused 7ms+143ms, total 651ms
07-17 22:01:11.788: D/ButtonClicker2000(1266): Sign-in failed.
07-17 22:01:11.837: I/Choreographer(1266): Skipped 333 frames!  The application may be doing too much work on its main thread.
07-17 22:01:12.057: E/SurfaceFlinger(37): ro.sf.lcd_density must be defined as a build property
07-17 22:01:12.197: I/Choreographer(1266): Skipped 79 frames!  The application may be doing too much work on its main thread.
07-17 22:01:13.017: D/dalvikvm(1283): GC_EXPLICIT freed 65K, 13% free 2535K/2904K, paused 5ms+154ms, total 442ms
07-17 22:01:13.067: E/StrictMode(1283): class com.google.android.gms.games.ui.signin.SignInActivity; instances=2; limit=1
07-17 22:01:13.067: E/StrictMode(1283): android.os.StrictMode$InstanceCountViolation: class com.google.android.gms.games.ui.signin.SignInActivity; instances=2; limit=1
07-17 22:01:13.067: E/StrictMode(1283):     at android.os.StrictMode.setClassInstanceLimit(StrictMode.java:1)
4

1 回答 1

2

我过去遇到过这个错误——我只是在努力确定是什么原因造成的:

class com.google.android.gms.games.ui.signin.SignInActivity; instances=2; limit=1

我相当确定这是因为您已经在另一台设备或模拟器上使用该帐户登录。我不需要做任何重要的事情来解决这个问题——从另一台设备上退出或使用不同的帐户。顺便说一句,如果您使用不同的帐户,请确保将其定义为游戏的测试人员。

更新:我刚刚看到了完整的 logcat,我看到这条消息在我们一直关注的消息之前:

Unable to sign in - application does not have a registered client ID

您的 app_id 必须设置为开发者控制台中客户端 ID 的前 12 个字节。这些东西都是谷歌有据可查的,例如:

https://developers.google.com/games/services/console/enabling

https://developers.google.com/live/shows/5936979195723776

如果它在真实设备而不是模拟器上运行,那么还请检查您是否设置了包含 Google API 的模拟器。

更新:

您现在发布了不同的 logcat 吗?无论如何,如果您仍然收到客户端 ID 消息,请检查您的应用中是否有两个不同的 app_id 值(例如,一个在 strings.xml 中,一个在 ids.xml 中)

于 2013-07-17T21:03:37.827 回答