fury icon indicating copy to clipboard operation
fury copied to clipboard

[Question] There appear to be a few hurdles for Android support

Open LouisLou2 opened this issue 4 months ago • 1 comments

I'm trying to use Fury on Android(Using Kotlin) and ran into some initialization issues. I have a quick question about platform support.

It seems there are two main blockers for Android:

Java Version Check: The static initializer in _JDKAccess fails with a NumberFormatException because System.getProperty("java.specification.version") returns "0.9" on Android.

static {
  String property = System.getProperty("java.specification.version"); // for Android, always "0.9"
  if (property.startsWith("1.")) {
    property = property.substring(2);
  }
  String jmvName = System.getProperty("java.vm.name", "");
  IS_OPEN_J9 = jmvName.contains("OpenJ9");
  JAVA_VERSION = Integer.parseInt(property); // exception: 0.9 can't be parsed to an Integer
  
  //...
}

sun.misc.Unsafe API: Fury relies heavily on sun.misc.Unsafe, which isn't available on standard Android runtimes.

Given these, are there any plans or known workarounds to get Fury running on Android?

Additional Context

https://youtrack.jetbrains.com/issue/KT-44089/Java-version-checking-doesnt-work-on-Android

LouisLou2 avatar Jul 31 '25 13:07 LouisLou2

@LouisLou2 Check this related issue: #1101

neboskreb avatar Aug 08 '25 10:08 neboskreb