【问题标题】:Execution failed for task ':app:transformClassesWithDexForDebugAndroidTest'. > com.android.build.api.transform.TransformException任务 ':app:transformClassesWithDexForDebugAndroidTest' 执行失败。 > com.android.build.api.transform.TransformException
【发布时间】:2016-01-02 05:12:48
【问题描述】:

这是我的full code,当我使用“运行/调试配置 > Android 测试”运行以下代码时

class KernelTest extends Specification {
    def "match"() {
        given:
        println("smth");
    }
}

我得到错误:

Execution failed for task ':app:transformClassesWithDexForDebugAndroidTest'.
> 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

这里是full output

如何解决?

更新

我检查了the question,但不知道是哪个jar重复

【问题讨论】:

    标签: android testing spock


    【解决方案1】:

    查看完整输出,原因是关于 groovy,我删除了所有 groovy 依赖并运行良好

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-03-24
      • 2020-03-07
      • 2023-03-15
      • 1970-01-01
      • 1970-01-01
      • 2018-08-20
      • 2016-05-02
      • 2022-01-19
      相关资源
      最近更新 更多