code: private static boolean isVMMultidexCapable() {
          boolean isMultidexCapable = false;
          String vmVersion = System.getProperty("java.vm.version");
          try {
              Matcher matcher = Pattern.compile("(\\d+)\\.(\\d+)(\\.\\d+)?").matcher(vmVersion);
              if (matcher.matches()) {
                  int major = Integer.parseInt(matcher.group(1));
                  int minor = Integer.parseInt(matcher.group(2));
                  isMultidexCapable = (major > 2) || ((major == 2) && (minor >= 1));
              }
          } catch (Exception ignore) {
          }
          String multidex = isMultidexCapable ? "has Multidex support" : "does not have Multidex support";
          Log.i(AndServer.TAG, String.format("VM with version %s %s.", vmVersion, multidex));
          return false;
      }
docs: Identifies if the current VM has a native support for multidex.
  
  @return true, otherwise is false.
  
  @see android.support.multidex.MultiDexExtractor#isVMMultidexCapable(String)