java.lang.instrument.IllegalClassFormatException: Error while instrumenting class ../../../../...Testcase.

GitHub | ahtokca | 6 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Gradle/Androdd/Jacoco/Robolectric/mockito IllegalClassFormatException / IllegalStateException Class is already instrumented

    GitHub | 6 months ago | ahtokca
    java.lang.instrument.IllegalClassFormatException: Error while instrumenting class ../../../../...Testcase.

    Root Cause Analysis

    1. java.lang.instrument.IllegalClassFormatException

      Error while instrumenting class ../../../../...Testcase.

      at org.jacoco.agent.rt.internal_6da5971.CoverageTransformer.transform()
    2. org.jacoco.agent
      CoverageTransformer.transform
      1. org.jacoco.agent.rt.internal_6da5971.CoverageTransformer.transform(CoverageTransformer.java:93)
      1 frame
    3. Java RT
      InstrumentationImpl.transform
      1. sun.instrument.TransformerManager.transform(TransformerManager.java:188)
      2. sun.instrument.InstrumentationImpl.transform(InstrumentationImpl.java:428)
      2 frames