I am having trouble logging in to Google. I installed the release build manually, but if I installed it from the play store, I get an error message.
W / Auth: [Get token] Failed to get token with status code: UNRector_ON_API_CONSOLE E / TokenRequestor: you have incorrect configurations related to OAuth2, please check. Detailed error: UNRector_ON_API_CONSOLE
E / SignInActivity: Google login failed.
Code snippet:
GoogleSignInOptions gso = new
GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)
.requestIdToken(getString(R.string.server_client_id))
.requestEmail()
.build();
mGoogleApiClient = new GoogleApiClient.Builder(this)
.enableAutoManage(this , this )
.addApi(Auth.GOOGLE_SIGN_IN_API, gso)
.build();
source
share