public static int run(Arguments arguments) throws IOException {
    return new Main(new DxContext()).runDx(arguments);
  }
Run and return a result code.

@param arguments the data + parameters for the conversion
@return 0 if success &gt; 0 otherwise.
android/android_framework/dex-maker/src/main/java/com/android/dx/command/dexer/Main.java