title: Duplicate entry error on livedata$1.class in android studio when try to generate apk
body: <p>I really don't konw what is causing this error and how to resolve it </p>
  
  <p>my all dependency:</p>
  
  <pre><code>implementation fileTree(dir: 'libs', include: ['*.jar'])
  implementation 'com.android.support:appcompat-v7:27.1.0'
  implementation 'com.android.support.constraint:constraint-layout:1.0.2'
  implementation 'com.google.firebase:firebase-auth:11.8.0'
  implementation 'com.google.firebase:firebase-firestore:11.8.0'
  implementation 'com.firebaseui:firebase-ui-firestore:3.2.1'
  implementation 'com.google.firebase:firebase-crash:11.8.0'
  implementation 'com.google.firebase:firebase-storage:11.8.0'
  implementation ('com.facebook.android:facebook-android-sdk:4.31.0'){exclude group: 'com.android.support'}
  implementation'com.github.bumptech.glide:glide:4.6.1'
  annotationProcessor 'com.github.bumptech.glide:compiler:4.6.1'
  compile 'com.android.support:cardview-v7:27.1.0'
  compile 'com.android.support:recyclerview-v7:27.1.0'
  
  compile 'com.airbnb.android:lottie:2.3.0'
  compile 'com.squareup.picasso:picasso:2.5.2'
  
  compile 'com.theartofdev.edmodo:android-image-cropper:2.6.0'
  compile 'de.hdodenhof:circleimageview:2.2.0'
  implementation 'com.android.support:design:27.1.0'
  compile 'com.android.support:multidex:1.0.3'
  </code></pre>
  
  <p>everything is good but after updating to 27.1.0</p>
  
  <p>it causes me error while generating an apk</p>
  
  <p>Error:Execution failed for task ':app:transformClassesWithJarMergingForRelease'.</p>
  
  <blockquote>
    <p>com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: android/arch/lifecycle/LiveData$1.class</p>
  </blockquote>