I am getting this error message when trying to implement logout for Google Sign-In for Android:
Caused by: java.lang.IllegalStateException: GoogleApiClient i
you can check whether is connected or not.
if (mGoogleApiClient.isConnected()) { //your code }