xerial/snappy-java

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

guojun12002 opened this issue · 4 comments

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)

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 I can work on this

xerial commented

Created a PR for this #442