/// <summary> /// Ensures all required SDKs are installed. If not, prompts the user to select the locations. /// </summary> /// <returns>True if the location is configured or the user selects a valid location.</returns> public static bool EnsureSdksInstalled() { if (HasAndroidJavaSdks) { return(true); } var dialog = new MonoDevelop.MonoDroid.Gui.MonoDroidSdkSettingsDialog(); try { int response = dialog.Run(); if (response == (int)Gtk.ResponseType.Ok) { dialog.ApplyChanges(); } } finally { dialog.Destroy(); } return(HasAndroidJavaSdks); }
/// <summary> /// Ensures all required SDKs are installed. If not, prompts the user to select the locations. /// </summary> /// <returns>True if the location is configured or the user selects a valid location.</returns> public static bool EnsureSdksInstalled () { if (HasAndroidJavaSdks) return true; var dialog = new MonoDevelop.MonoDroid.Gui.MonoDroidSdkSettingsDialog (); try { int response = dialog.Run (); if (response == (int)Gtk.ResponseType.Ok) dialog.ApplyChanges (); } finally { dialog.Destroy (); } return HasAndroidJavaSdks; }