System.getProperty("java.version") returns 0 instead of "1.7.0"

Why does MOE return 0 when calling System.getProperty(“java.version”)?

I would like to use Gradle Tooling API inside my iOS app but gradle checks for Java 6 compatibilty via “java.version” property…

Best,
Tobi

Dear Tobi,

this is not a bug, this is the value Android provides and MOE uses Android’s Runtime and Core libraries. Unfortunately, AFAIK you cannot use System.setProperty to override this value.

Is it the case on iOS too? RoboVM does not show this behaviour…