我从Google Play游戏服务使用GameHelper类收到以下异常。
日志跟踪:
java.lang.IllegalStateException: GameHelper: operation attempted at incorrect state.
Operation: succeedSignIn. State: DISCONNECTED. Expected states: CONNECTING CONNECTED.
at ru.funapps.games.frutcoctail.GameHelper.assertState(GameHelper.java:185)
at ru.funapps.games.frutcoctail.GameHelper.succeedSignIn(GameHelper.java:781)
at ru.funapps.games.frutcoctail.GameHelper.connectNextClient(GameHelper.java:678)
at ru.funapps.games.frutcoctail.GameHelper.onConnected(GameHelper.java:777)
at com.google.android.gms.internal.u.v(Unknown Source)
at com.google.android.gms.internal.bp.v(Unknown Source)
at com.google.android.gms.internal.u$f.a(Unknown Source)
at com.google.android.gms.internal.u$f.a(Unknown Source)
at com.google.android.gms.internal.u$b.A(Unknown Source)
at com.google.android.gms.internal.u$a.handleMessage(Unknown Source)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4511)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:976)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:743)
at dalvik.system.NativeStart.main(Native Method)
最佳答案
您是否尝试过更新到最新版本的GameHelper?
https://github.com/playgameservices/android-samples
关于android - java.lang.IllegalStateException:GameHelper:尝试在错误状态下进行操作,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/18380776/