title: Android build error when implementing google places sdk
body: <p>Hello everyone I am developing simple food delivery android application so its required to integrate google maps and auto suggestion I follow to find current location</p>
  
  <pre><code>[google sample code](https://github.com/googlemaps/android-samples/blob/master/tutorials/CurrentPlaceDetailsOnMap/app/src/main/java/com/example/currentplacedetailsonmap/MapsActivityCurrentPlace.java)
  </code></pre>
  
  <p>and for Auto suggestions I followed</p>
  
  <pre><code>https://developers.google.com/places/android-sdk/autocomplete
  </code></pre>
  
  <p>when build it gradle shows duplicate class error</p>
  
  <pre>
  <code>Duplicate class com.google.android.libraries.places.api.internal.impl.net.pablo.AutocompletePredictionResult found in modules classes.jar (com.google.android.libraries.places:places-compat:1.1.0) and classes.jar (com.google.android.libraries.places:places:1.1.0)
  Duplicate class com.google.android.libraries.places.api.internal.impl.net.pablo.AutocompletePredictionResult$StructuredFormatting found in modules classes.jar (com.google.android.libraries.places:places-compat:1.1.0) and classes.jar (com.google.android.libraries.places:places:1.1.0)
  Duplicate class com.google.android.libraries.places.api.internal.impl.net.pablo.AutocompletePredictionResult$Substring found in modules classes.jar (com.google.android.libraries.places:places-compat:1.1.0) and classes.jar (com.google.android.libraries.places:places:1.1.0)
  Duplicate class com.google.android.libraries.places.api.internal.impl.net.pablo.FetchPlacePabloResponse found in modules classes.jar (com.google.android.libraries.places:places-compat:1.1.0) and classes.jar (com.google.android.libraries.places:places:1.1.0)
  
  Duplicate class com.google.android.libraries.places.internal.bc found in modules classes.jar (com.google.android.libraries.places:places-compat:1.1.0) and classes.jar (com.google.android.libraries.places:places:1.1.0)
  Duplicate class com.google.android.libraries.places.internal.bd found in modules classes.jar (com.google.android.libraries.places:places-compat:1.1.0) and classes.jar (com.google.android.libraries.places:places:1.1.0)
  Duplicate class com.google.android.libraries.places.internal.be found in modules classes.jar (com.google.android.libraries.places:places-compat:1.1.0) and classes.jar (com.google.android.libraries.places:places:1.1.0)
  </code>
  </pre>
  
  <p>And this my gradle</p>
  
  <pre><code>implementation 'com.google.android.libraries.places:places-compat:1.1.0'
  implementation 'com.google.android.libraries.places:places:1.1.0'
  </code></pre>
  
  <p>i try to exclude duplicate classes by below way</p>
  
  <pre><code>implementation 'com.google.android.libraries.places:places-compat:1.1.0'
  implementation ('com.google.android.libraries.places:places:1.1.0'){
   exclude group:'com.google.android.libraries.places.api.internal.impl.net.pablo'
   exclude group: 'com.google.android.libraries.places.internal'
      }
  </code></pre>
  
  <p>But no thing can solve my problem.</p>