java.lang.IllegalAccessError: tried to access method org.mockito.internal.util.MockUtil.<init>()V from class com.nhaarman.mockito_kotlin.CreateInstanceKt

GitHub | unintelligible | 8 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to Rafael Fischer Viola . Or join the community to write better ones.
  1. 0
    samebug tip
    Update Mockito to newest version.
  2. 0

    any() doesn't seem to work with latest Mockito (2.0.94-beta)

    GitHub | 8 months ago | unintelligible
    java.lang.IllegalAccessError: tried to access method org.mockito.internal.util.MockUtil.<init>()V from class com.nhaarman.mockito_kotlin.CreateInstanceKt

  1. rafael 2 times, last 3 months ago

Root Cause Analysis

  1. java.lang.IllegalAccessError

    tried to access method org.mockito.internal.util.MockUtil.<init>()V from class com.nhaarman.mockito_kotlin.CreateInstanceKt

    at com.nhaarman.mockito_kotlin.CreateInstanceKt.uncheckedMock()
  2. com.nhaarman.mockito_kotlin
    CreateInstanceKt.createInstance
    1. com.nhaarman.mockito_kotlin.CreateInstanceKt.uncheckedMock(CreateInstance.kt:180)
    2. com.nhaarman.mockito_kotlin.CreateInstanceKt.createInstance(CreateInstance.kt:58)
    2 frames