code: private static boolean isVMMultidexCapable() {
          boolean isMultidexCapable = false;
          String vmName = null;
  
          try {
              if (isYunOS()) {    // YunOS需要特殊判断
                  vmName = "'YunOS'";
                  isMultidexCapable = Integer.valueOf(System.getProperty("ro.build.version.sdk")) >= 21;
              } else {    // 非YunOS原生Android
                  vmName = "'Android'";
                  String versionString = System.getProperty("java.vm.version");
                  if (versionString != null) {
                      Matcher matcher = Pattern.compile("(\\d+)\\.(\\d+)(\\.\\d+)?").matcher(versionString);
                      if (matcher.matches()) {
                          try {
                              int major = Integer.parseInt(matcher.group(1));
                              int minor = Integer.parseInt(matcher.group(2));
                              isMultidexCapable = (major > VM_WITH_MULTIDEX_VERSION_MAJOR)
                                      || ((major == VM_WITH_MULTIDEX_VERSION_MAJOR)
                                      && (minor >= VM_WITH_MULTIDEX_VERSION_MINOR));
                          } catch (NumberFormatException ignore) {
                              // let isMultidexCapable be false
                          }
                      }
                  }
              }
          } catch (Exception ignore) {
  
          }
  
          Log.i(Consts.TAG, "VM with name " + vmName + (isMultidexCapable ? " has multidex support" : " does not have multidex support"));
          return isMultidexCapable;
      }
docs: Identifies if the current VM has a native support for multidex, meaning there is no need for
  additional installation by this library.
  
  @return true if the VM handles multidex