我运行了jacoco测试报告任务,它遇到以下错误

时间:2019-03-11 14:33:48

标签: gradle jacoco

$ gradle jacocoTestReport

Output – java.io.IOException: Incompatible version 1012

Caused by: : Unable to read execution data file /home/mkyong/workspace/hc/analyzer/build/jacoco/test.exec


    at org.jacoco.ant.ReportTask.loadExecutionData(ReportTask.java:516)
    at org.jacoco.ant.ReportTask.execute(ReportTask.java:490)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.gradle.api.internal.project.ant.BasicAntBuilder.nodeCompleted(BasicAntBuilder.java:78)


    //...


Caused by: java.io.IOException: Incompatible version 1012.


at org.jacoco.core.data.ExecutionDataReader.readHeader(ExecutionDataReader.java:12)
    at org.jacoco.core.data.ExecutionDataReader.readBlock(ExecutionDataReader.java:107)
    at org.jacoco.core.data.ExecutionDataReader.read(ExecutionDataReader.java:87)
    at org.jacoco.core.tools.ExecFileLoader.load(ExecFileLoader.java:59)
    at org.jacoco.ant.ReportTask.loadExecutionData(ReportTask.java:514)

0 个答案:

没有答案