-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Native library (com/sun/jna/android-aarch64/libjnidispatch.so) not found in resource path (.) #60
Comments
Hi @aagam-chai, I think all you need to do to the consuming project is add JNA to it...
|
Hi @gurpreet- I have same issue. My SDK uses
Then in consumer app when :
it WORKS
Runtime exception
Compile exception
Any suggestions? |
I see this as well in my project. I've added the jna library as a dependency but it still doesn't work for some reason. |
Already open
jna = "5.13.0" |
Not sure if this is a workaround, but I wound back my version of JNA to the verion that was around when V5.1.0 of Lazy Sodium was built, which seems to be 5.12.1, so changing the line to:
Seems to get my code to work OK for now at least. I could be missing something of course. |
Native library (com/sun/jna/android-aarch64/libjnidispatch.so) not found in resource path (.)
As I was creating an Android library, encryption was necessary, therefore I added lazysodium to it.
When I tested my library module during development, it was successful.
However, after it was published on github and hosted on jitpack, I called the same function from the SDK, which contains the encryption code, and it consistently produced this problem.
The suspected issue is with the '@aar' thing, is there anything special required to have this dependency in a library module?
The text was updated successfully, but these errors were encountered: