You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my company here there are people that are running CliKt inside their test flavor of our Android app, which they use to validate things in some e2e tests we run.
Mordant is a dep of CliKt and it currently does not support Android.
Here is our stack trace of the issue we run into during our test runs with Mordant 2.0.0:
java.lang.UnsatisfiedLinkError: Native library (com/sun/jna/android-aarch64/libjnidispatch.so) not found in resource path (.)
at com.sun.jna.Native.loadNativeDispatchLibraryFromClasspath(Native.java:1059)
at com.sun.jna.Native.loadNativeDispatchLibrary(Native.java:1015)
at com.sun.jna.Native.<clinit>(Native.java:221)
at com.sun.jna.Native.load(Native.java:596)
at com.github.ajalt.mordant.internal.LinuxMppImpls.<init>(JnaMppImplsLinux.kt:44)
at com.github.ajalt.mordant.internal.MppImplKt.<clinit>(MppImpl.kt:97)
at com.github.ajalt.mordant.terminal.TerminalDetection.isIntellijRunActionConsole(TerminalDetection.kt:169)
at com.github.ajalt.mordant.terminal.TerminalDetection.detectTerminal(TerminalDetection.kt:16)
at com.github.ajalt.mordant.terminal.StdoutTerminalInterface.<init>(StdoutTerminalInterface.kt:17)
at com.github.ajalt.mordant.terminal.Terminal.<init>(Terminal.kt:56)
at com.github.ajalt.mordant.terminal.Terminal.<init>(Terminal.kt:45)
at com.github.ajalt.clikt.core.Context$Builder.<init>(Context.kt:227)
at com.github.ajalt.clikt.core.Context$Companion.build$clikt(Context.kt:312)
at com.github.ajalt.clikt.core.CliktCommand.createContext(CliktCommand.kt:141)
at com.github.ajalt.clikt.core.CliktCommand.parse(CliktCommand.kt:487)
at com.github.ajalt.clikt.core.CliktCommand.parse$default(CliktCommand.kt:486)
<our code>
I've looked into the code whether the latest available version and even master would have a fix for this issue, but unfortunately it would not help our use case 😕
The text was updated successfully, but these errors were encountered:
To be clear, based on you stack trace you're asking about Java on android, not any of the androidNative targets?
The first google result for your exception suggests that you may need to manually add a dependency on the aar artifact implementation("net.java.dev.jna:jna:5.13.0@aar"). Give that a try.
In my company here there are people that are running CliKt inside their test flavor of our Android app, which they use to validate things in some e2e tests we run.
Mordant is a dep of CliKt and it currently does not support Android.
Here is our stack trace of the issue we run into during our test runs with Mordant 2.0.0:
I've looked into the code whether the latest available version and even master would have a fix for this issue, but unfortunately it would not help our use case 😕
The text was updated successfully, but these errors were encountered: