How can i logout from google account when i click my logout button in my android project : <p>i tried this code in to my project the compiler will show the following error.</p>

<p>this is my code. </p>

<pre><code>Auth.GoogleSignInApi.signOut(mGoogleApiClient).setResultCallback(new ResultCallback&lt;Status&gt;() { @Override public void onResult(Status status) { } });
</code></pre>

<p>and this is my error</p>

<pre><code>cannot be cast to com.google.android.gms.common.api.GoogleApiClient$OnConnectionFailedListener
</code></pre>
