googlesamples / google-services

A collection of quickstart samples demonstrating the Google APIs for Android and iOS
https://developers.google.com
Apache License 2.0
3.05k stars 2.53k forks source link

google signin occasional login error - ApiException: 10 #522

Open OhPeterPan opened 2 years ago

OhPeterPan commented 2 years ago

Step 1: Describe your environment

Step 2: Describe the problem:

google signin occasional login error - ApiException: 10,occasional non-must appear, please help

Step 3:Relevant Code:

val options = GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN) .requestEmail() .build() val signInClient = GoogleSignIn.getClient(context, options) return signInClient.signInIntent