Make sure that the clientId you pass to GetSignInWithGoogleOption.Builder is not a Client ID for Android in Google Cloud Console. Create a separate OAuth Client ID for Web application.