Git Product home page Git Product logo

Comments (5)

gurpreet- avatar gurpreet- commented on June 1, 2024 1

Hi thanks for reporting this.

I'm currently working on a fix for this. Up until then use 4.5.1

from lazysodium-android.

gurpreet- avatar gurpreet- commented on June 1, 2024 1

Please upgrade to the latest version of the library ASAP @malenalbc. That should fix it.

from lazysodium-android.

gurpreet- avatar gurpreet- commented on June 1, 2024

JNA with version 5.2.0 works correctly and as intended.

from lazysodium-android.

malenalbc avatar malenalbc commented on June 1, 2024

This is happening to me with version 5.5.0@aar and version 4.1.0@aar of the library:

  implementation "com.goterl.lazycode:lazysodium-android:4.1.0@aar"
    implementation 'net.java.dev.jna:jna:5.5.0@aar'

The stacktrace when running some code:

Exception in thread "main" java.lang.UnsatisfiedLinkError: Native library (com/sun/jna/darwin/libjnidispatch.jnilib) not found in resource path ([file:/Users/username/Library/Android/sdk/platforms/android-29/android.jar, file:/Users/username/Library/Android/sdk/platforms/android-29/data/res/, file:/Users/username/Project/build/intermediates/javac/debug/classes/, file:/Users/username/Project/build/tmp/kotlin-classes/debug/, file:/Users/username/Project/build/generated/res/resValues/debug/, file:/Users/username/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-android-extensions-runtime/1.3.61/289bdf25b4886749e040c7a7d3aab8a57f85c631/kotlin-android-extensions-runtime-1.3.61.jar, file:/Users/username/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk7/1.3.61/70dffc5f8ac5ea7c34f30deac5b9d8b1d48af066/kotlin-stdlib-jdk7-1.3.61.jar, file:/Users/username/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.3.61/4702105e97f7396ae41b113fdbdc180ec1eb1e36/kotlin-stdlib-1.3.61.jar, file:/Users/username/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-common/1.3.61/65abb71d5afb850b68be03987b08e2c864ca3110/kotlin-stdlib-common-1.3.61.jar, file:/Users/username/.gradle/caches/modules-2/files-2.1/org.jetbrains/annotations/13.0/919f0dfe192fb4e063e7dacadee7f8bb9a2672a9/annotations-13.0.jar, file:/Users/username/.gradle/caches/transforms-2/files-2.1/f5502816b14bb62549b26ad4e2f02a4d/lazysodium-android-4.1.0/jars/classes.jar, file:/Users/username/.gradle/caches/transforms-2/files-2.1/a0c6aecc41384ff6be5d4099b29da256/jna-5.5.0/jars/classes.jar, file:/Users/username/.gradle/caches/transforms-2/files-2.1/a0c6aecc41384ff6be5d4099b29da256/jna-5.5.0/res/, file:/Applications/Android%20Studio.app/Contents/lib/idea_rt.jar])
	at com.sun.jna.Native.loadNativeDispatchLibraryFromClasspath(Native.java:1032)
	at com.sun.jna.Native.loadNativeDispatchLibrary(Native.java:988)
	at com.sun.jna.Native.<clinit>(Native.java:195)
	at com.goterl.lazycode.lazysodium.SodiumAndroid.<init>(SodiumAndroid.java:37)
	at com.goterl.lazycode.lazysodium.SodiumAndroid.<init>(SodiumAndroid.java:17)

Tried downgrading to 5.2.0@aar but gives the same error.

from lazysodium-android.

AndroidDeveloperLB avatar AndroidDeveloperLB commented on June 1, 2024

For me this worked fine:

    implementation "com.goterl:lazysodium-android:5.0.0@aar"
    implementation 'net.java.dev.jna:jna:5.8.0@aar'

I suggest trying it out.
Note: use gradle version on canary version of the IDE:

        classpath 'com.android.tools.build:gradle:7.0.0-alpha12'

from lazysodium-android.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.