title: How to use Google's auto complete places api in Android application
body: <p>I want to use Google Places API in my android application. I have API Key I got it from Google's API console. I am following the <em>Perform Autocomplete</em> section in <a href="http://ddewaele.blogspot.in/2011/05/introducing-google-places-api.html" rel="nofollow">this tutorial</a>.</p>
  
  <p>Now the problem I am facing is exactly which jar file I need for this. I have tried with two:</p>
  
  <ol>
  <li><p><code>google-api-client-1.6.0-beta.jar</code></p>
  
  <p>In this case I am getting exception when creating the object of class where I have implemented these methods and imported the packages of above library</p></li>
  <li><p><code>google-http-client-1.6.0-beta.jar</code></p>
  
  <p>GoogleHeaders cannot be resolved to a type</p></li>
  </ol>
  
  <p>If I comment the code where I am setting header to request it does not shows any error but
  when I execute the code I get the following error:</p>
  
  <blockquote>
    <p>java.lang.NoClassDefFoundError: com.google.common.base.Preconditions</p>
  </blockquote>
  
  <p>I have also added all the dependency jars.</p>