gradle单元测试错误superClassName is empty Posted on 2015-01-21 Edited on 2020-12-04 In Misc 执行gradle build时构建失败,有如下错误提示: 12345FAILURE: Build failed with an exception.* What went wrong:Execution failed for task ':test'.> superClassName is empty! 此问题的描述见GRADLE-1682,解决办法为在build.gradle配置文件中添加如下行: 1234tasks.withType(Test){ scanForTestClasses = false include "**/*Test.class"} ===[erq]