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

android-arm64: No static field [ARRAY_BYTE_BASE_OFFSET] of type I #339

Closed
guojun12002 opened this issue Jul 30, 2022 · 4 comments · Fixed by #442
Closed

android-arm64: No static field [ARRAY_BYTE_BASE_OFFSET] of type I #339

guojun12002 opened this issue Jul 30, 2022 · 4 comments · Fixed by #442

Comments

@guojun12002
Copy link

I got a runtime errror when used jdk8 in android arm64
Caused by: java.lang.NoSuchFieldError: No static field ARRAY_BYTE_BASE_OFFSET of type I in class Lsun/misc/Unsafe; or its superclasses (declaration of 'sun.misc.Unsafe' appears in /apex/com.android.runtime/javalib/core-oj.jar)
at org.xerial.snappy.pure.PureJavaSnappy.uncompressedLength(PureJavaSnappy.java:235)
at org.xerial.snappy.Snappy.uncompressedLength(Snappy.java:617)
at org.xerial.snappy.Snappy.uncompress(Snappy.java:491)

@xerial
Copy link
Owner

xerial commented Jan 28, 2023

android arm64 is not yet supported. By adding some build configurations, it can be supported. https://github.com/xerial/snappy-java/releases/tag/v1.1.9.0

@xerial xerial changed the title No static field [ARRAY_BYTE_BASE_OFFSET] of type I android-arm64: No static field [ARRAY_BYTE_BASE_OFFSET] of type I Jan 28, 2023
@imsudiproy
Copy link
Contributor

@xerial I can work on this

@xerial
Copy link
Owner

xerial commented May 23, 2023

Created a PR for this #442

@xerial
Copy link
Owner

xerial commented May 23, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants