@NotNull public static ValidationResult validateAndroidNdk(@Nullable File ndkPath,boolean includePathInMessage){
  if (ndkPath != null) {
    WizardUtils.ValidationResult wizardValidationResult=WizardUtils.validateLocation(ndkPath.getAbsolutePath(),"Android NDK location",false,WritableCheckMode.DO_NOT_CHECK);
    if (!wizardValidationResult.isOk()) {
      return ValidationResult.error(wizardValidationResult.getFormattedMessage());
    }
  }
  ValidationResult validationResult=validatedSdkPath(ndkPath,"NDK",false,includePathInMessage);
  if (validationResult.success && ndkPath != null) {
    File toolchainsDirPath=new File(ndkPath,"toolchains");
    if (!toolchainsDirPath.isDirectory()) {
      String message;
      if (includePathInMessage) {
        message=String.format("The NDK at\n'%1$s'\ndoes not contain any toolchains.",ndkPath.getPath());
      }
 else {
        message="NDK does not contain any toolchains.";
      }
      return ValidationResult.error(message);
    }
  }
  return validationResult;
}

@ NotNull public static ValidationResult validateAndroidNdk ( @ Nullable File ndkPath , boolean includePathInMessage ) { if ( ndkPath != null ) { WizardUtils . ValidationResult wizardValidationResult = WizardUtils . validateLocation ( ndkPath . getAbsolutePath ( ) , "Android NDK location" , false , WritableCheckMode . DO_NOT_CHECK ) ; if ( ! wizardValidationResult . isOk ( ) ) { return ValidationResult . error ( wizardValidationResult . getFormattedMessage ( ) ) ; } } ValidationResult validationResult = validatedSdkPath ( ndkPath , "NDK" , false , includePathInMessage ) ; if ( validationResult . success && ndkPath != null ) { File toolchainsDirPath = new File ( ndkPath , "toolchains" ) ; if ( ! toolchainsDirPath . isDirectory ( ) ) { String message ; if ( includePathInMessage ) { message = String . format ( "The NDK at\n'%1$s'\ndoes not contain any toolchains." , ndkPath . getPath ( ) ) ; } else { message = "NDK does not contain any toolchains." ; } return ValidationResult . error ( message ) ; } } return validationResult ; }
indicates whether the given path belongs to a valid android ndk .
