在测试工件中应用单元测试时,Gradle执行失败

时间:2016-03-07 10:48:32

标签: android unit-testing android-studio junit android-gradle

我正在尝试在Android Studio中使用JUnit,但是当我将Test Artifcat从 Instrumentation tests **更改为** Unit Tests

时,我遇到以下问题
:app:mockableAndroidJar FAILED
Error:Execution failed for task ':app:mockableAndroidJar'.
    > class org.objectweb.asm.tree.ClassNode has interface org.objectweb.asm.ClassVisitor as super class

也会出现此错误:

Error:Execution failed for task ':app:mockableAndroidJar'.
> org/objectweb/asm/tree/ClassNode

有人知道为什么会这样吗?

当我使用其他测试工件时,不会出现错误。

0 个答案:

没有答案