Skip to content

FakeFileSystem is failing with NoSuchMethodError - KMP #1660

Description

@DasJhaman

Libraries:

okio = "3.10.2"
kotlin = "2.1.21"
  commonTest.dependencies {
            implementation(libs.kotlin.test)
            implementation(libs.fake.file.system)
            implementation("app.cash.turbine:turbine:1.1.0")
            implementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.7.3")
            implementation(libs.kotlinx.datetime)
        }
class FakeFileSystem() : FileSystemProvider {
    override val fileSystem: FileSystem = FakeFileSystem()

    override fun createPath(fileName: String) = "/tmp/$fileName".toPath()
}

When i run my unit test FakeFileSystem is failing with following error:
'void okio.fakefilesystem.FakeFileSystem.(kotlin.time.Clock, int, kotlin.jvm.internal.DefaultConstructorMarker)'
java.lang.NoSuchMethodError: 'void okio.fakefilesystem.FakeFileSystem.(kotlin.time.Clock, int, kotlin.jvm.internal.DefaultConstructorMarker)'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions