I can't Build my project,I keep getting an error message when I build my project.

I might be an idiot, but every time I select build (Pc, Mac, Standalone) It says, "Cannot build player while editor is importing or compiling scripts. Im using Unity 2019.4.16f1.
Thank you!,What the title says, every time I attempt to build my project it says, “Cannot build player while editor is importing assets or compiling scripts.” Please Help.

(I’m using unity 2019.4.16f1)

I fixed it, there were a few errors in one of my scripts, and I had to install the windows 10 sdk from the visual studio installer.