title: Why do I get com.google.android.gms.common.api.ApiException: 10:?
body: <pre><code>private void handleSignInResult(Task&lt;GoogleSignInAccount&gt; completedTask) {
      try {
          GoogleSignInAccount account = completedTask.getResult(ApiException.class); //exception is here
  
          // Signed in successfully, show authenticated UI.
          System.out.println("google token ---&gt; " + account.getIdToken());
      } catch (ApiException e) {
          // The ApiException status code indicates the detailed failure reason.
          // Please refer to the GoogleSignInStatusCodes class reference for more information about this error.
          e.printStackTrace();
      }
  }
  </code></pre>