I'm trying to set the following option:
-Djava.util.Arrays.useLegacyMergeSort=true
with gradle build for android. This is to circumvent this issue
My question is how do I add this option in 'Android Studio'? I tried to add it in the Compiler->VM options, but to no avail.
I also tried setting it in the command line (JAVA_OPTS) and building with the gradle command, but that didn't work either.
I'm using Java 1.8 and Gradle 2.2.1