Google sign in failed after frequent signing in and out
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I can sign in my app with Google account at first several times. Everything is fine. But if I sign in and out about 20 times in a one or two minutes. Google sign in failed and in onActivityResult function, it returns error code 12501, resultCode = 0; I'm using the phone: Nexus 6, Android 5.1.1 Here is my code: private GoogleSignInOptions mGso; private GoogleApiClient mGac; public void init(@NonNull final BaseActivity activity) { mGso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN) .requestIdToken(activity.getString(R