#asknostr #android #dev nostr:nprofile1qqsyvrp9u6p0mfur9dfdru3d853tx9mdjuhkphxuxgfwmryja7zsvhqpzamhxue69uhhv6t5daezumn0wd68yvfwvdhk6tcpz9mhxue69uhkummnw3ezuamfdejj7qgwwaehxw309ahx7uewd3hkctcscpyug

I'm trying to build my very first android app, and it is gonna be an android app.

I got stuck straight away attempting to use the Quartz library provided by Amethyst.

I am getting this error and AI doesn't seem to be very good at helping me. Hope someone can help me.

```

java.lang.UnsatisfiedLinkError: Native library (com/sun/jna/android-x86-64/linux-dispatch.so) not found in resource path (.)

```

This happens when trying to create a new KeyPair and it loads lazysodium.SodiumAndroid.

I have added the following to my dependencies under the instruction of AI, but it hasn't helped:

```

implementation("com.goterl:lazysodium-android:5.2.0")

implementation("net.java.dev.jna:5.17.0")

```

FYI, excuse any typos, I typed this by hand but the app does compile. It crashes when I try to call KeyPair().

Does it crash on tests or when running on the device?

Reply to this note

Please Login to reply.

Discussion

Both. Also the @arr didn't seem to make any difference.

Oh sorry, I meant running on both emulator and device.

I have no tests... Yet... 🙈

If it helps, I'll get it into github and share the link... But it's basically mostly vanilla right now.

Maybe the jna has to be re-added. Also, check the ...jna:jna... below:

implementation("com.github.vitorpamplona.amethyst:quartz:0.92.7") {

exclude("net.java.dev.jna")

}

implementation("net.java.dev.jna:jna:5.17.0")

I got a different error after doing this, but after trying all variations to understand what was going on, I realise that this just makes the situation worse.

The error is `java.lang.NoClassDefFoundError: Failed resolution of: Lcom/sun/jna/Native;`

It doesn't seem that this is the right course of action as I get the same error whether I add jna to my dependencies or not.

Anyway, I will keep exploring ideas. My repo if you have time to play, is https://github.com/dipunm/meneme

nostr:nprofile1qqsyvrp9u6p0mfur9dfdru3d853tx9mdjuhkphxuxgfwmryja7zsvhqpzamhxue69uhhv6t5daezumn0wd68yvfwvdhk6tcpz9mhxue69uhkummnw3ezuamfdejj7qgwwaehxw309ahx7uewd3hkctcscpyug not sure why it didn't work last night, but I tried again today and this worked:

```

Implementation ("com.github.vitorpamplona.amethyst:quartz:v0.84.3") {

exclude("net.java.dev.jna", "jna")

}

implementation("net.java.dev.jna:jna:5.17.0@arr")

```

❤️

I know why, I typed arr instead of aar 🪝

I also sent a PR to you GitHub :)

Merged. Wow, first contribution 😅

Let me know when you have it on Github, I can take a look