title: Android Studio: Duplicate files copied in APK META-INF/DEPENDENCIES when compile
body: <p>I exported my project from Eclipse and imported to Android Studio using the instructions in this link: <a href="http://developer.android.com/sdk/installing/migrate.html">http://developer.android.com/sdk/installing/migrate.html</a></p>
  
  <p>When I build, I have an error:</p>
  
  <pre><code>Duplicate files copied in APK META-INF/DEPENDENCIES
  </code></pre>
  
  <p>After searching, I found a solution: add </p>
  
  <pre><code>packagingOptions {
      exclude 'META-INF/DEPENDENCIES'
  }
  </code></pre>
  
  <p>into <code>build.gradle</code>. And it works!</p>
  
  <p>But I don't understand why I had this error and why I've had to apply that fix. Can anybody explain?</p>