title: Android gradle packagingOptions pickFirst and exclude not working
body: <p>EclipseLink jar contains some JPA classes. Android build APK fails:</p>
  
  <pre><code>Error:Execution failed for  
  task ':app:transformClassesWithJarMergingForDebug'.
  &gt; com.android.build.api.transform.TransformException: 
  java.util.zip.ZipException: duplicate entry: javax/persistence/Access.class
  </code></pre>
  
  <p>Tried both exclude and pickFirst as following</p>
  
  <pre><code>packagingOptions {
  
      exclude 'javax/persistence/**'
  }
  
  
  packagingOptions {
  
       pickFirst 'javax/persistence/**'
  }
  
  packagingOptions {
  
       pickFirst 'javax/persistence/Access.class'
  }
  </code></pre>
  
  <p>None of them working.</p>