[Tex/LaTex] Error: “Could not start Default Compiler: XeLaTeX”

compiling

Yesterday TexStudio worked fine, but today when I try to compile any document I get a "Could not start Default Compiler: XeLaTeX" error.

\documentclass[11pt][openany]{book}
\begin{document}
\begin{center}
\Huge \textbf{\textsf{ABSTRACT}}\\[15pt]
\huge \noindent \textsf{\textbf{Optogenetic strategies for stimulus responsive viral gene delivery}}\\[15pt]
\textsf{by}\\[15pt]
\textbf{\textsf{Eric Jordan Gomez}}

\end{document}

Is there any solution to this? I couldn't find a question where has already been asked.

Best Answer

For whatever reason, it started working again after I re-opened TeXstudio and pasted my code into a new untitled file. But if I try to open and compile the original save file with the same exact code, I get the "could not start default compiler error" again. Not sure why that happens.