Failed to build project

1>------ Build started: Project: AIM, Configuration: Development_Editor x64 ------
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\VCTargets\Microsoft.Cpp.props(31,3): warning MSB4011: “C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\VCTargets\Microsoft.Makefile.props” cannot be imported again. It was already imported at “C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.cpp.props (31,3)”. This is most likely a build authoring error. This subsequent import will be ignored. [D:\AIM\AIM\Intermediate\ProjectFiles\AIM.vcxproj]
1>Distributing 9 actions to XGE
1>EXEC : Fatal error : Failed to start build.
1>Failed to connect to Build Service (on local machine): Server is not reachable
1>
1>
1>UnrealBuildTool : error : UBT ERROR: Failed to produce item: D:\AIM\AIM\Binaries\Win64\UE4Editor-AIM.dll
1>Total build time: 1.09 seconds (XGE executor: 0.00 seconds)
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets(41,5): error MSB3075: The command ““D:\unreal engine\UE_4.19\Engine\Build\BatchFiles\Build.bat” AIMEditor Win64 Development “D:\AIM\AIM\AIM.uproject” -WaitMutex -FromMsBuild” exited with code 5. Please verify that you have sufficient rights to run this command.
1>Done building project “AIM.vcxproj” – FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

i get this error each time i create a project

Try rebooting your PC. It looks like you might have a second instance of something running that is blocking the build tool from accessing the files. If that doesn’t work try to run in admin mode