title: Android Studio, cannot resolve symbol method
body: <p>I've been following this guide on Google Developers and have stumbled into some errors. 
  <a href="https://developers.google.com/identity/sign-in/android/sign-in" rel="nofollow">https://developers.google.com/identity/sign-in/android/sign-in</a></p>
  
  <p>Here is the code I'm having problems with:</p>
  
  <pre><code>public void onConnectionFailed(ConnectionResult connectionResult) {
      Log.d("", "onConnectionFailed:" + connectionResult);
  
      if (!mIsResolving &amp;&amp; mShouldResolve) {
          if (connectionResult.hasResolution()) {
              try {
                  connectionResult.startResolutionForResult(this, RC_SIGN_IN);
                  mIsResolving = true;
              } catch (IntentSender.SendIntentException e) {
                  Log.e("", "Could not resolve ConnectionResult.", e);
                  mIsResolving = false;
                  mGoogleApiClient.connect();
              }
          } else {
              // Could not resolve the connection result, show the user an
              // error dialog.
              showErrorDialog(connectionResult);
          }
      } else {
          // Show the signed-out UI
          showSignedOutUI();
      }
  }
  </code></pre>
  
  <p>and the errors:</p>
  
  <p>Error:(133, 17) error: cannot find symbol method showErrorDialog(ConnectionResult)</p>
  
  <p>Error:(137, 13) error: cannot find symbol method showSignedOutUI()</p>
  
  <p>I apologize in advance if this is a newbie question, is it because I've forgotten to import something? I've tried importing many other different components but it did not solve the issue.</p>
  
  <pre><code>import com.google.android.gms.common.ConnectionResult;
  import com.google.android.gms.plus.*;
  import com.google.android.gms.common.api.Scope;
  import com.google.android.gms.common.Scopes; 
  import com.google.android.gms.common.api.GoogleApiClient;
  </code></pre>
  
  <p>I'm a lost sheep here, any help i would greatly appreciate!</p>