title: Why I can't connect to GoogleApiClient?
body: <p>I am trying to connect to GoogleApiClient, but nothing is happend and GoogleApiClient.ConnectionCallbacks don't invoke.After connect() I immediately go to onConnectionFailed. How to fix it?</p>
  
  <p>MainActivity:</p>
  
  <pre><code>public class MainActivity extends ActionBarActivity
      implements GoogleApiClient.ConnectionCallbacks, GoogleApiClient.OnConnectionFailedListener {
  
  private GoogleApiClient mGoogleApiClient;
  private static final String TAG = MainActivity.class.getSimpleName();
  private TextView tvLocation;
  private boolean mResolvingError;
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
      tvLocation = (TextView) findViewById(R.id.tv_location);
      buildGoogleApiClient();
  
  
      if(mGoogleApiClient.isConnecting()){
          Toast.makeText(this,"Connecting",Toast.LENGTH_LONG).show();
      } else {
          Toast.makeText(this,"Connecting stoped",Toast.LENGTH_LONG).show();
      }
  }
  
  
  public void buildGoogleApiClient(){
      mGoogleApiClient = new GoogleApiClient.Builder(this,this,this)
              .useDefaultAccount()
              .addApi(LocationServices.API)
              .build();
      mGoogleApiClient.connect();
  
  }
  
  @Override
  protected void onStart() {
      super.onStart();
      if (!mResolvingError) {  
          mGoogleApiClient.connect();
      }
  
  }
  
  @Override
  public void onConnected(Bundle bundle) {
      Log.d(TAG, "API Client Connected");
      LocationRequest request = LocationRequest.create();
      request.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);
      LocationServices.FusedLocationApi.requestLocationUpdates(mGoogleApiClient,request,new LocationListener() {
          @Override
          public void onLocationChanged(Location location) {
              String loc = "lon=" + location.getLongitude() + "lat="+ location.getLatitude();
              tvLocation.setText(loc);
          }
      });
  
  }
  
  @Override
  public void onConnectionSuspended(int i) {
      Log.d(TAG,"API Client Connected Failed");
  }
  
  @Override
  public void onConnectionFailed(ConnectionResult connectionResult) {
      Log.d(TAG,"API Client Connection Problems");
  }
  </code></pre>
  
  <p>}</p>
  
  <p>Gradle dependencies:</p>
  
  <pre><code>dependencies {
  compile fileTree(dir: 'libs', include: ['*.jar'])
  compile 'com.android.support:appcompat-v7:21.0.3'
  compile 'com.google.android.gms:play-services:7.0.0'
  </code></pre>
  
  <p>}</p>
  
  <p>Manifest:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  </code></pre>
  
  <p></p>
  
  <pre><code>&lt;uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /&gt;
  &lt;uses-permission android:name="ANDROID.PERMISSION.ACCESS_COARSE_LOCATION"/&gt;
  &lt;application
      android:allowBackup="true"
      android:icon="@mipmap/ic_launcher"
      android:label="@string/app_name"
      android:theme="@style/AppTheme" &gt;
      &lt;meta-data android:name="com.google.android.gms.version"
          android:value="@integer/google_play_services_version" /&gt;
  
      &lt;activity
          android:name=".MainActivity"
          android:label="@string/app_name" &gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.MAIN" /&gt;
  
              &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
  &lt;/application&gt;
  </code></pre>
  
  <p></p>