title: Error to create object of GoogleApiClient, gives java.lang.IllegalStateException: Already managing a GoogleApiClient with id 0
body: <p>I want to implement autocomplete place google API in android. To do that I need to create an object of GoogleApiClient. I have used the following code for this...</p>
  
  <pre><code>private GoogleApiClient mGoogleApiClient;
  
  mGoogleApiClient = new GoogleApiClient.Builder(getActivity())
                  .addApi(Drive.API)
                  .addScope(Drive.SCOPE_FILE)
                  .enableAutoManage(getActivity(), 0 /* clientId */, this)
                  .addConnectionCallbacks(this)
                  .addOnConnectionFailedListener(this)
                  .build();
  </code></pre>
  
  <p>But when the fragment starts, it throws the following exception and the app is  crashed.</p>
  
  <blockquote>
    <p>java.lang.IllegalStateException: Already managing a GoogleApiClient
    with id 0</p>
  </blockquote>
  
  <p><strong>Note: this is performed in FRAGMENT.</strong></p>
  
  <p>Following is the manifest file configuration..</p>
  
  <pre><code>&lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
      &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /&gt;
      &lt;uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" /&gt;
      &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /&gt;
      &lt;uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /&gt;
      &lt;uses-permission android:name="com.example.permission.MAPS_RECEIVE"/&gt;
  
      &lt;application
          android:allowBackup="true"
          android:icon="@drawable/ic_launcher"
          android:label="@string/app_name"
          android:theme="@style/AppTheme"
          android:name="com.example.bluehorsesoftkol.ekplatevendor.Utils.EkPlateVendorApplication"&gt;
  
  
          &lt;activity
              android:name="com.example.bluehorsesoftkol.ekplatevendor.activity.registration.ActivitySplashScreen"
              android:label="@string/app_name"
              android:screenOrientation="landscape"&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;activity
              android:name="com.example.bluehorsesoftkol.ekplatevendor.activity.registration.ActivityLogin"
              android:screenOrientation="landscape"&gt;
          &lt;/activity&gt;
          &lt;activity
              android:name=".activity.vendor.ActivityHome"
              android:screenOrientation="landscape"&gt;
          &lt;/activity&gt;
          &lt;activity         android:name="com.example.bluehorsesoftkol.ekplatevendor.activity.vendor.ActivityAddVendor"
              android:screenOrientation="landscape"&gt;
          &lt;/activity&gt;
          &lt;activity
              android:name=".activity.vendor.CustomGalleryActivity"
              android:screenOrientation="landscape"&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="ekplatevendor.ACTION_PICK" /&gt;
                  &lt;action android:name="ekplatevendor.ACTION_MULTIPLE_PICK" /&gt;
  
                  &lt;category android:name="android.intent.category.DEFAULT" /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
  
          &lt;uses-feature
              android:glEsVersion="0x00020000"
              android:required="true"/&gt;
  
          &lt;meta-data
              android:name="com.google.android.geo.API_KEY"
              android:value="@string/TEST_API_KEY"/&gt;
  
      &lt;/application&gt; 
  </code></pre>
  
  <p>So, please help to solve this issue..</p>
  
  <p>Thank you.</p>