title: How to remove a jar file from the external libraries directory, which is added by the gradle dependency, in android?
body: <p>First, I have added a dependency in gradle, and then sync the project. We have no error, but when we run the application, we got an error which is also showing in the image.</p>
  
  <pre><code>    :app:transformClassesWithJarMergingForDebug FAILED
      Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.
  com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: javax/inject/Inject.class
  </code></pre>
  
  <p>We found a duplicate jar file with different version which is highlighted above. Now I want to remove only this duplicate jar file(<code>java.inject-1</code>).
  Hope someone has a solution for this.</p>
  
  <p><img src="https://i.stack.imgur.com/XJtjn.png" alt=""></p>