Option option = new Option();
option.setNature(NATURE);
option.setPath("Android");
option.setName(AdtPrefs.PREFS_SDK_DIR);
option.setValidator(new SdkValidator());
preferences.addOption(option);
String sdkLocation = AdtPrefs.getPrefs().getOsSdkFolder();
if (sdkLocation == null || sdkLocation.length() == 0){
logger.warn("Android SDK Location not set.");
}else if (!new File(sdkLocation).exists()){