When launching game, it fails to launch UAT when compiling/packaging

When I try to test my project under “Project Launcher” it fails to launch UAT and cancels the rest of the compiling/Packaging.

This is the output log:
Running AutomationTool…
Automation.ParseCommandLine: Parsing command line: -ScriptsForProject=“E:/Unreal Engine/Subject617/Subject617.uproject” BuildCookRun -project=“E:/Unreal Engine/Subject617/Subject617.uproject” -noP4 -clientconfig=Development -serverconfig=Development -nocompile -nocompileeditor -installed -ue4exe=UE4Editor-Cmd.exe -utf8output -platform=Win64 -targetplatform=Win64 -cookonthefly -map= -compressed -stage -deploy -cmdline=" -Messaging" -device=WindowsNoEditor@PETERS_COMPUTER -addcmdline="-SessionId=08D7F861463E7B8B519B5BB89377A230 -SessionOwner=‘peter’ -SessionName=‘PETERS_COMPUTER’ " -run
XmlConfigFile.TryRead: ERROR: Data at the root level is invalid. Line 4, position 1.
Automation.Process: Failed to initialize UBT
Program.Main: AutomationTool exiting with ExitCode=1 (Error_Unknown)
BUILD FAILED

I don’t know what to do to fix this. Also, the launch button in the toolbar is grayed out for some reason(which is why is use the Project Launcher).

Please help!

I was having the same problem with a game I had been working on for about 2 years. Go into the file widows manager C:\Program Files\Epic Games\UE_4.16\Engine\Binaries\Win64 → then right click on UE4Editor.exe → run as administrator.

I hope this helps.