title: Execution failed for task ':app:transformClassesWithDexForDebugAndroidTest'. > com.android.build.api.transform.TransformException
body: <p>here is my <a href="https://github.com/roroco/vst/tree/cannot-run-spock-on-adr" rel="nofollow noreferrer">full code</a>, when I run following code with "Run/Debug configurations > Android Tests"</p>
  
  <pre><code>class KernelTest extends Specification {
      def "match"() {
          given:
          println("smth");
      }
  }
  </code></pre>
  
  <p>I get error:</p>
  
  <pre><code>Execution failed for task ':app:transformClassesWithDexForDebugAndroidTest'.
  &gt; com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/usr/lib/jvm/jdk8/bin/java'' finished with non-zero exit value 3
  </code></pre>
  
  <p>here is <a href="https://gist.github.com/roroco/21dd7f75396f101a6fcb" rel="nofollow noreferrer">full output</a></p>
  
  <p>how to fix it?</p>
  
  <p><strong>update</strong></p>
  
  <p>I have check <a href="https://stackoverflow.com/questions/28917696/errorexecution-failed-for-task-appdexdebug-com-android-ide-common-process">the question</a>, but I don't know which jar is duplicated</p>