Skip to content

JVM: Could not find jna-5.17.0-jpms.jar #385

Description

@Ribesg

In a KMP project with Android, JVM and iOS targets, I added io.github.vinceglb:filekit-dialogs-compose version 0.11.0 as a commonMain dependency. It works on Android, but when I try to run the JVM target (named "desktop") I got this strange error:

➜ ./gradlew desktopRun

> Task :desktopRun FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':desktopRun'.
> Could not resolve all files for configuration ':desktopRuntimeClasspath'.
   > Could not find jna-5.17.0-jpms.jar (net.java.dev.jna:jna:5.17.0).
     Searched in the following locations:
         https://repo.maven.apache.org/maven2/net/java/dev/jna/jna/5.17.0/jna-5.17.0-jpms.jar

./gradlew runDistributable fails with the same error on createDistributable. I'm not sure why it's looking for a jar that doesn't exist and that never existed.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions