Android build Unknown Error, AutomationTool exiting with ExitCode=1 (Error_Unknown)

Another thing you can try is creating a new empty project, then copying the “Content” folder from the project with the error into the new project. Sometimes, this fixes unknown errors.