title: ApiException on silent signing using GoogleSignInClient on Android
body: <p>I get following error frequently when I try to sign in silently on android. How can I debug this. What is the reason for this. (I have an active google account on my android phone.)</p>
  
  <pre><code>signInSilently(): failure
  com.google.android.gms.common.api.ApiException: 4: 
  at com.google.android.gms.common.internal.zzb.zzz(Unknown Source)
  at com.google.android.gms.common.internal.zzbk.zzaa(Unknown Source)
  at com.google.android.gms.common.internal.zzbl.zzs(Unknown Source)
  at com.google.android.gms.common.api.internal.zzs.zzc(Unknown Source)
  at com.google.android.gms.common.api.internal.zzs.setResult(Unknown Source)
  at com.google.android.gms.auth.api.signin.internal.zzg.zza(Unknown Source)
  at com.google.android.gms.auth.api.signin.internal.zzt.onTransact(Unknown Source)
  at android.os.Binder.execTransact(Binder.java:446)
  </code></pre>
  
  <p>the code is follows </p>
  
  <pre><code> mGoogleSignInClient.silentSignIn().addOnCompleteListener(activity,
       new OnCompleteListener&lt;GoogleSignInAccount&gt;() {
          @Override
          public void onComplete(@NonNull Task&lt;GoogleSignInAccount&gt; task) {
               if (task.isSuccessful()) {
                     Log.d(TAG, "signInSilently(): success");
                     onConnected(task.getResult());
               } else {
                 Log.d(TAG, "signInSilently(): failure", task.getException());
                          Toast.makeText(activity, "A sign-in problem encountered.",
                                  Toast.LENGTH_SHORT).show();
                          onDisconnected();
               }
            }
         });
  </code></pre>