-
Notifications
You must be signed in to change notification settings - Fork 168
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
error on android #58
Comments
Are you using it by importing zstd-jni in your project as a source sub-module or you are trying to reuse the Maven distributed JAR file? The later will not work. |
an aar is published on maven central for zstd-jni-1.3.4-10 and above, it should work now |
I'm trying to use this library using the following gradle line:
But I'm still getting the Unsupported OS/arch, cannot find /linux/aarch64/libzstd-jni.so or load zstd-jni from system libraries. Please try building from source the jar or providing libzstd-jni in you system. error. Perhaps something else has to be done in order for an Android project to work well? |
My bad, I forgot to add the 'aar' suffix on the implementation line. The correct and working line for Gradle is:
It's working! |
@carlos-mg89 thank you for mentioning the @aar is quite important for fixing the issue. You save my day. For Android developers who now use version catalog in module dependency management, the following code would be helpful to load the zstd library. In libs.versions.toml, In build.gradle, |
get error on android 8.1, it seems can not find the so file.
byte[] bytes_c = Zstd.compress(bytes);
The text was updated successfully, but these errors were encountered: