I have problem, when i tried to make google authentication .getClient(this, gso) steel red and alt+enter does not help!
I tried to make the same in new, clear project, but nothing changed(
private void CreateRequestGoogleSignIn() { // Configure Google Sign In GoogleSignInOptions gso = new GoogleSignInOptions .Builder(GoogleSignInOptions.DEFAULT_SIGN_IN) .requestIdToken(getString(R.string.default_web_client_id)) .requestEmail() .build(); mGoogleSignInClient = GoogleSignIn.getClient(this, gso); }```
The problem was in this line of code:
mGoogleSignInClient = GoogleSignIn.getClient(this, gso);
and i change this line:
mGoogleSignInClient = com.google.android.gms.auth.api.signin.GoogleSignIn.getClient(this, gso);
2.1m questions
2.1m answers
60 comments
56.8k users