Packaging Error (Solved)

When I package my blueprint project, I get these error lines:

UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: ERROR: Windows SDK v8.1 must be installed in order to build this target.

UATHelper: Packaging (Windows (64-bit)): Program.Main: ERROR: AutomationTool terminated with exception: AutomationTool.CommandUtils+CommandFailedException: Command failed (Result:5): E:\Programs\Epic Games\UE_4.16\Engine\Binaries\DotNET\UnrealBuildTool.exe Steam_Networking Win64 Shipping -Project="E:\Programs\Unreal Projects\Steam_Networking\Steam_Networking

PackagingResults:Error: Error Unknown Error

I have already downloaded Windows SDK v8.1 and restarted my computer.

The project is from the video tutorials for blueprint multiplayer: https://docs.unrealengine.com/latest/INT/Videos/PLZlv_N0_O1gYqSlbGQVKsRg6fpxWndZqZ/index.html

This is the full output log:

UATHelper: Packaging (Windows (64-bit)): Running AutomationTool...
UATHelper: Packaging (Windows (64-bit)): Automation.ParseCommandLine: Parsing command line: -ScriptsForProject="E:/Programs/Unreal Projects/Steam_Networking/Steam_Networking.uproject" BuildCookRun -nocompile -nocompileeditor -installed -nop4 -project="E:/Programs/Unreal Projects/Steam_Networking/Steam_Networking.uproject" -cook -stage -archive -archivedirect
ory="E:/Programs/Unreal Projects/Steam_Networking/Packages" -package -clientconfig=Shipping -ue4exe=UE4Editor-Cmd.exe -pak -prereqs -nodebuginfo -targetplatform=Win64 -build -utf8output
UATHelper: Packaging (Windows (64-bit)): BuildCookRun.SetupParams: Setting up ProjectParams for E:\Programs\Unreal Projects\Steam_Networking\Steam_Networking.uproject
UATHelper: Packaging (Windows (64-bit)): Project.Build: ********** BUILD COMMAND STARTED **********
UATHelper: Packaging (Windows (64-bit)): CommandUtils.Run: Run: E:\Programs\Epic Games\UE_4.16\Engine\Binaries\DotNET\UnrealBuildTool.exe Steam_Networking Win64 Shipping -Project="E:\Programs\Unreal Projects\Steam_Networking\Steam_Networking.uproject"  "E:\Programs\Unreal Projects\Steam_Networking\Steam_Networking.uproject" -NoUBTMakefiles  -remoteini="E:\Pr
ograms\Unreal Projects\Steam_Networking" -noxge -generatemanifest -NoHotReload
UATHelper: Packaging (Windows (64-bit)): CommandUtils.Run: Run: Took 0.9670553s to run UnrealBuildTool.exe, ExitCode=0
UATHelper: Packaging (Windows (64-bit)): CommandUtils.Run: Run: E:\Programs\Epic Games\UE_4.16\Engine\Binaries\DotNET\UnrealBuildTool.exe Steam_Networking Win64 Shipping -Project="E:\Programs\Unreal Projects\Steam_Networking\Steam_Networking.uproject"  "E:\Programs\Unreal Projects\Steam_Networking\Steam_Networking.uproject" -NoUBTMakefiles  -remoteini="E:\Pr
ograms\Unreal Projects\Steam_Networking" -noxge -NoHotReload -ignorejunk
UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: ERROR: Windows SDK v8.1 must be installed in order to build this target.
UATHelper: Packaging (Windows (64-bit)): CommandUtils.Run: Run: Took 2.6241501s to run UnrealBuildTool.exe, ExitCode=5
UATHelper: Packaging (Windows (64-bit)): Program.Main: ERROR: AutomationTool terminated with exception: AutomationTool.CommandUtils+CommandFailedException: Command failed (Result:5): E:\Programs\Epic Games\UE_4.16\Engine\Binaries\DotNET\UnrealBuildTool.exe Steam_Networking Win64 Shipping -Project="E:\Programs\Unreal Projects\Steam_Networking\Steam_Networking
.uproject"  "E:\Programs\Unreal Projects\Steam_Networking\Steam_Networking.uproject" -NoUBTMakefiles  -remoteini="E:\Programs\Unreal Projects\Steam_Networking" -noxge -NoHotReload -ignorejunk. See logfile for details: 'UnrealBuildTool-2017.07.19-22.35.09.txt' 
UATHelper: Packaging (Windows (64-bit)):    at AutomationTool.CommandUtils.RunAndLog(String App, String CommandLine, String Logfile, Int32 MaxSuccessCode, String Input, ERunOptions Options, Dictionary`2 EnvVars, SpewFilterCallbackType SpewFilterCallback)
UATHelper: Packaging (Windows (64-bit)):    at AutomationTool.CommandUtils.RunAndLog(CommandEnvironment Env, String App, String CommandLine, String LogName, Int32 MaxSuccessCode, String Input, ERunOptions Options, Dictionary`2 EnvVars, SpewFilterCallbackType SpewFilterCallback)
UATHelper: Packaging (Windows (64-bit)):    at AutomationTool.CommandUtils.RunUBT(CommandEnvironment Env, String UBTExecutable, String CommandLine, String LogName, Dictionary`2 EnvVars)
UATHelper: Packaging (Windows (64-bit)):    at AutomationTool.CommandUtils.RunUBT(CommandEnvironment Env, String UBTExecutable, FileReference Project, String Target, String Platform, String Config, String AdditionalArgs, String LogName, Dictionary`2 EnvVars)
UATHelper: Packaging (Windows (64-bit)):    at AutomationTool.UE4Build.BuildWithUBT(String TargetName, UnrealTargetPlatform TargetPlatform, String Config, FileReference UprojectPath, Boolean ForceMonolithic, Boolean ForceNonUnity, Boolean ForceDebugInfo, Boolean ForceFlushMac, Boolean DisableXGE, String InAddArgs, Boolean ForceUnity, Dictionary`2 EnvVars)
UATHelper: Packaging (Windows (64-bit)):    at AutomationTool.UE4Build.Build(BuildAgenda Agenda, Nullable`1 InDeleteBuildProducts, Boolean InUpdateVersionFiles, Boolean InForceNoXGE, Boolean InUseParallelExecutor, Boolean InForceNonUnity, Boolean InForceUnity, Boolean InShowProgress, Dictionary`2 PlatformEnvVars, Nullable`1 InChangelistNumberOverride, Dictio
nary`2 InTargetToManifest)
UATHelper: Packaging (Windows (64-bit)):    at Project.Build(BuildCommand Command, ProjectParams Params, Int32 WorkingCL, ProjectBuildTargets TargetMask)
UATHelper: Packaging (Windows (64-bit)):    at BuildCookRun.DoBuildCookRun(ProjectParams Params)
UATHelper: Packaging (Windows (64-bit)):    at BuildCookRun.ExecuteBuild()
UATHelper: Packaging (Windows (64-bit)):    at AutomationTool.BuildCommand.Execute()
UATHelper: Packaging (Windows (64-bit)):    at AutomationTool.Automation.Execute(List`1 CommandsToExecute, CaselessDictionary`1 Commands)
UATHelper: Packaging (Windows (64-bit)):    at AutomationTool.Automation.Process(String[] Arguments)
UATHelper: Packaging (Windows (64-bit)):    at AutomationTool.Program.MainProc(Object Param)
UATHelper: Packaging (Windows (64-bit)):    at AutomationTool.InternalUtils.RunSingleInstance(Func`2 Main, Object Param)
UATHelper: Packaging (Windows (64-bit)):    at AutomationTool.Program.Main()
UATHelper: Packaging (Windows (64-bit)): Program.Main: AutomationTool exiting with ExitCode=5 (5)
UATHelper: Packaging (Windows (64-bit)): BUILD FAILED
PackagingResults:Error: Error Unknown Error

EDIT: The problem was that I didn’t have c++ components installed in Visual Studio. In Visual Studio 2015, Visual C++ is not installed by default. When installing, be sure to choose Custom installation and then choose the C++ components you require. Or, if Visual Studio is already installed, choose File | New | Project | C++ and you will be prompted to install the necessary components.