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

GitHub | ahtokca | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

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

    GitHub | 7 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