Skip to content
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

Java not able to open .so file generated by this project #74

Closed
hjuraev opened this issue Sep 24, 2022 · 2 comments
Closed

Java not able to open .so file generated by this project #74

hjuraev opened this issue Sep 24, 2022 · 2 comments

Comments

@hjuraev
Copy link

hjuraev commented Sep 24, 2022

I was able to compile my project using this SDK. It created .so files that should be compatible with JNI. But I'm facing a different problem, the android project compiles successfully, but when the java code is trying to load a .so file, I'm getting this error.

java.lang.UnsatisfiedLinkError: dlopen failed: empty/missing DT_HASH/DT_GNU_HASH in "/data/app/~~1ftAMe1LzrCJsXmWFBcigA==/nexus.us.swift_native-7raIURWcYa11TdtF8jLtCg==/base.apk!/lib/arm64-v8a/libdispatch.so" (new hash type from the future?)

Any thoughts on this?

@finagolfin
Copy link
Owner

Others have reported this issue, can you check if their reported solution fixes it for you too? I don't use Gradle and the SDK, so I'm not familiar with what that does.

@hjuraev
Copy link
Author

hjuraev commented Sep 25, 2022

Yes, you are right.
It was resolved before.

packagingOptions {
doNotStrip "/arm64-v8a/.so"
doNotStrip "/armeabi-v7a/.so"
doNotStrip "/x86_64/.so"
}
This little snippet in gradle can solve the problem.
Closing this issue.
Thanks

@hjuraev hjuraev closed this as completed Sep 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants