title: gradlew assembleDebug fails because of transformClassesWithJarMergingForDebug
body: <p>When i build my android application using "Build->Build Project" on android studio. it works fine. But when i run:</p>
  
  <pre><code>gradlew assembleDebug
  </code></pre>
  
  <p>from terminal. Build fails and prints this message:</p>
  
  <pre><code>* What went wrong:
  Execution failed for task ':app:transformClassesWithJarMergingForDebug'.
  &gt; com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: org/slf4j/impl/StaticLoggerBinder.class
  </code></pre>
  
  <p>What is the difference between two methods? How can i solve this problem because i have to create my .apk file using gradle scripts.</p>