We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 304461e + d169530 commit 7e59700Copy full SHA for 7e59700
zproject_java.gsl
@@ -766,11 +766,14 @@ implements AutoCloseable\
766
. endif
767
{
768
static {
769
- try {
770
- NativeLoader.loadLibrary("$(project.prefix:c)jni");
771
- }
772
- catch (Exception e) {
773
- System.exit (-1);
+ if (System.getProperty("java.vm.vendor").contains("Android")) {
+ System.loadLibrary("$(project.prefix:c)jni");
+ } else {
+ try {
+ NativeLoader.loadLibrary("$(project.prefix:c)jni");
774
+ } catch (Exception e) {
775
+ System.exit (-1);
776
+ }
777
}
778
779
public long self;
0 commit comments