joreilly / PeopleInSpace

Kotlin Multiplatform project with SwiftUI, Jetpack Compose, Compose for Wear, Compose for Desktop, and Compose for Web clients along with Ktor backend.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TestKoinGraph > checking koin modules FAILED java.lang.NoClassDefFoundError at Shadows.java

RdeWilde opened this issue · comments

When compiling the app from Android Studio (AF 2020.3.1 RC1), I am facing this error.

> Task :app:testDebugUnitTest FAILED

com.surrus.peopleinspace.TestKoinGraph > checking koin modules FAILED
    java.lang.NoClassDefFoundError at Shadows.java:2317
        Caused by: java.lang.ClassNotFoundException at SandboxClassLoader.java:147
            Caused by: java.lang.IllegalArgumentException at ClassReader.java:195

Not sure what is causing this.

I bumped these versions in Dependencies.kt and it seems to resolve the issue. I'm not too sure yet what would be the side-effects.

    const val mockito = "3.11.2"
    // ..
    const val robolectric = "4.6.1"