title: Status{statusCode=NETWORK_ERROR, resolution=null} even when passing "AutocompleteFilter" as null
body: <p>Being new to Android, I am trying to lay my hands on google Map API for a project. I ma trying to implement <code>AutoComplete</code> for google map. I am constantly getting <code>Status{statusCode=NETWORK_ERROR, resolution=null}</code> no matter what I do.</p>
  
  <p>I refered some SO questions like:</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/29845946/google-places-api-for-android-error-statusstatuscode-network-error-resolution">Question 1</a></li>
  <li><a href="https://stackoverflow.com/questions/44118233/google-places-api-for-android-network-error">Question 2</a></li>
  </ul>
  
  <p>but I am unable to resolve the issue. I am passing <code>mPlaceFilter</code> as <code>null</code>, still <code>status.toString()</code> is returning the same error</p>
  
  <pre><code>    private ArrayList&lt;PlaceAutocomplete&gt; getAutocomplete(CharSequence constraint) {
      if (mGoogleApiClient.isConnected()) {
          Log.i("", "Starting autocomplete query for: " + constraint);
  
          // Submit the query to the autocomplete API and retrieve a PendingResult that will
          // contain the results when the query completes.
          PendingResult&lt;AutocompletePredictionBuffer&gt; results =
                  Places.GeoDataApi.getAutocompletePredictions(mGoogleApiClient, constraint.toString(),mBounds, mPlaceFilter);
  
          // This method should have been called off the main UI thread. Block and wait for at most 60s
          // for a result from the API.
          AutocompletePredictionBuffer autocompletePredictions = results.await(60, TimeUnit.SECONDS);
  
          // Confirm that the query completed successfully, otherwise return null
          final Status status = autocompletePredictions.getStatus();
          if (!status.isSuccess()) {
              Toast.makeText(mContext, "Error contacting API:: " + status.toString(),Toast.LENGTH_SHORT).show();
              Log.e("", "Error getting autocomplete prediction API call: " + status.toString());
              autocompletePredictions.release();
              return null;
          }
  
          Log.i("", "Query completed. Received " + autocompletePredictions.getCount()
                  + " predictions.");
  
          // Copy the results into our own data structure, because we can't hold onto the buffer.
          // AutocompletePrediction objects encapsulate the API response (place ID and description).
  
          Iterator&lt;AutocompletePrediction&gt; iterator = autocompletePredictions.iterator();
          ArrayList resultList = new ArrayList&lt;&gt;(autocompletePredictions.getCount());
          while (iterator.hasNext()) {
              AutocompletePrediction prediction = iterator.next();
              // Get the details of this prediction and copy it into a new PlaceAutocomplete object.
              resultList.add(new PlaceAutocomplete(prediction.getPlaceId(), prediction.getFullText(null)));
  
  
          }
  
          // Release the buffer now that all data has been copied.
          autocompletePredictions.release();
  
          return resultList;
      }
      Log.e("", "Google API client is not connected for autocomplete query.");
      return null;
  }
  </code></pre>
  
  <p>In <strong>logcat</strong>, I can see</p>
  
  <pre><code> 06-22 11:11:11.979 1730-24663/? E/AsyncOperation: serviceID=65, operation=GetAutoPredictions
  
   OperationException[Status{statusCode=NETWORK_ERROR, resolution=null}]
                                                    at aimj.b(:com.google.android.gms:0)
                                                    at aily.a(:com.google.android.gms:39)
                                                    at iyv.run(:com.google.android.gms:14)
                                                    at jck.run(:com.google.android.gms:24)
                                                    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
                                                    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
                                                    at jho.run(:com.google.android.gms:0)
                                                    at java.lang.Thread.run(Thread.java:841)
  </code></pre>
  
  <p><strong>AndroidManifest.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
  package="com.mapapp2"&gt;
  
  &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
  &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
  &lt;uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" /&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /&gt;
  
  &lt;application
      android:allowBackup="true"
      android:icon="@mipmap/ic_launcher"
      android:label="@string/app_name"
      android:roundIcon="@mipmap/ic_launcher_round"
      android:supportsRtl="true"
      android:name="android.support.multidex.MultiDexApplication"
      android:theme="@style/AppTheme"&gt;
      &lt;activity android:name=".MainActivity"&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;meta-data
          android:name="com.google.android.gms.version"
          android:value="@integer/google_play_services_version" /&gt;
      &lt;meta-data
          android:name="com.google.android.geo.API_KEY"
          android:value="My KEy" /&gt;
      &lt;!--&lt;meta-data --&gt;
          &lt;!--android:name="com.google.android.maps.v2.API_KEY" --&gt;
          &lt;!--android:value="My KEy" /&gt;--&gt;
  &lt;/application&gt;
  </code></pre>
  
  <p></p>