在某些设备上,尤其是在23以下的API上,启动com.google.android.gms.auth.GOOGLE_SIGN_IN时,由于信号11,我的游戏关闭了
我正在使用here中记录的基本集成实现Google登录。我正在使用Game Maker Studio 2。
以下是Java方面的代码:
public void Init(){
GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)
.build();
activity = RunnerActivity.CurrentActivity;
mGoogleSignInClient = GoogleSignIn.getClient(activity, gso);
}
public void SignIn() {
Intent signInIntent = mGoogleSignInClient.getSignInIntent();
activity.startActivityForResult(signInIntent, RC_SIGN_IN);
}
这是关注这些问题的日志:
07-17 22:25:39.662: I/ActivityManager(958): START u0 {act=com.google.android.gms.auth.GOOGLE_SIGN_IN pkg=com.solveedu.dawnofcivilization cmp=com.solveedu.dawnofcivilization/com.google.android.gms.auth.api.signin.internal.SignInHubActivity (has extras)} from uid 10165 and from pid 15171 on display 0
07-17 22:25:39.672: I/yoyo(15171): onPause
07-17 22:25:39.672: V/WindowManager(958): addAppToken: AppWindowToken{1bee29d3 token=Token{54dd7c2 ActivityRecord{106edc0d u0 com.solveedu.dawnofcivilization/com.google.android.gms.auth.api.signin.internal.SignInHubActivity t86}}} to stack=1 task=86 at 1
07-17 22:25:39.682: I/yoyo(15171): Pausing the Runner
07-17 22:25:39.802: D/AudioPolicyManager(298): notifyAudioEffect start
07-17 22:25:39.802: D/AudioPolicyManager(298): send sendString = open
07-17 22:25:39.802: E/AudioPolicyManager(298): write error: Broken pipe
07-17 22:25:39.802: E/AudioPolicyManager(298): Surface writex0 fail err Broken pipe
07-17 22:25:39.932: I/WindowState(958): WIN DEATH: Window{15ea6e1d u0 com.solveedu.dawnofcivilization/com.solveedu.dawnofcivilization.RunnerActivity}
07-17 22:25:39.932: W/WindowManager(958): Force-removing child win Window{3f9ab263 u0 SurfaceView} from container Window{15ea6e1d u0 com.solveedu.dawnofcivilization/com.solveedu.dawnofcivilization.RunnerActivity}
07-17 22:25:39.942: V/WindowManager(958): Changing focus from Window{15ea6e1d u0 com.solveedu.dawnofcivilization/com.solveedu.dawnofcivilization.RunnerActivity} to null Callers=com.android.server.wm.WindowManagerService.removeWindowLocked:2966 com.android.server.wm.WindowManagerService.removeWindowLocked:2875 com.android.server.wm.WindowState$DeathRecipient.binderDied:1298 android.os.BinderProxy.sendDeathNotice:551
07-17 22:25:39.942: W/WindowManager(958): Failed looking up window
07-17 22:25:39.942: W/WindowManager(958): java.lang.IllegalArgumentException: Requested window android.os.BinderProxy@9cbe892 does not exist
07-17 22:25:39.942: W/WindowManager(958): at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:9336)
07-17 22:25:39.942: W/WindowManager(958): at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:9327)
07-17 22:25:39.942: W/WindowManager(958): at com.android.server.wm.WindowState$DeathRecipient.binderDied(WindowState.java:1295)
07-17 22:25:39.942: W/WindowManager(958): at android.os.BinderProxy.sendDeathNotice(Binder.java:551)
07-17 22:25:39.942: I/WindowState(958): WIN DEATH: null
07-17 22:25:39.992: I/Zygote(314): Process 15171 exited due to signal (11)
07-17 22:25:40.042: I/ActivityManager(958): Process com.solveedu.dawnofcivilization (pid 15171) has died
07-17 22:25:40.042: D/ActivityManager(958): cleanUpApplicationRecord -- 15171
07-17 22:25:40.042: W/ActivityManager(958): Service crashed 0 times, stopping: ServiceRecord{3bcebd81 u0 com.solveedu.dawnofcivilization/.CW_TTS_Service}this is not core appcom.solveedu.dawnofcivilization
07-17 22:25:40.052: D/ActivityManager(958): cleanUpApplicationRecordLocked:goodbye proc com.solveedu.dawnofcivilization
07-17 22:25:40.052: W/ActivityManager(958): Force removing ActivityRecord{cdf6c8a u0 com.solveedu.dawnofcivilization/.RunnerActivity t86}: app died, no saved state
07-17 22:25:40.082: I/ActivityManager(958): Start proc 15998:com.solveedu.dawnofcivilization/u0a165 for activity com.solveedu.dawnofcivilization/com.google.android.gms.auth.api.signin.internal.SignInHubActivity
将感谢您的答复。
谢谢。