Skip to content

build error: libmultik_jni-linuxX64.so is not an ABI even though I'm not building for that target #214

@treitter

Description

@treitter

Hi, I'm currently hitting this error when trying to build my Android app (for an arm64 emulator) on macOS:

Cause: multik-openblas-jvm-0.2.3 extracted from path ~/.gradle/caches/8.9/transforms/4d3515c442b573850b7bc131f7841f9c/transformed/multik-openblas-jvm-0.2.3/linuxX64/libmultik_jni-linuxX64.so is not an ABI

That file exists (as does the libmultik_jni-androidArm64.so version it seems is actually relevant) but I'm not building on Linux nor do I define linuxX64 anywhere in my config.

I can build and run my commonTest test cases which indirectly depend upon multik-core and multik-default.

I've got the following in my build.gradle.kts:

kotlin {
    androidTarget {
        publishAllLibraryVariants()
    }

    iosArm64 {
        config("iphoneos")
    }
    iosSimulatorArm64 {
        config("iphonesimulator")
    }

    sourceSets {
        commonMain.dependencies {
            ...
            implementation("org.jetbrains.kotlinx:multik-core:0.2.3")
            implementation("org.jetbrains.kotlinx:multik-default:0.2.3")
        }

        commonTest.dependencies {
            implementation(libs.kotlin.test)
        }

        androidMain.dependencies {
            ...
        }

        iosMain.dependencies {
            ...
        }
    }
    ...
}

Do I have a mistake in my build.gradle.kts? Can I / do I need to somehow explicitly exclude linuxX64 or that .so file?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions