"Build and publish" Button not working

so the reason why it didnt work was 1 setting in in windows settings because my pc language is set to german (utf-8) and unity didnt like that.
How i fixxed it (im translating the settings myself, so in windows they will most likely be called different):

Win+r

enter: intl.cpl

go to the second tab on the top an go to the setting for unicode-uncapable programms (for me it was the lower setting)

there you can check a box. THere should be something like “UTF-8” in the text next to it.

For all the germans and the people who want to translate it, there is a screenshot:

I hope, this is helpful