I cannot compile any C++ code

Hi,
The issue i’m having is that whenever I attempt to make a new C++ class and or try to start a new project in C++ I get the following error:

“The project could not be compiled. Would you like to open it in Visual Studio?
Running D:/UnrealEngine/UE_4.17/Engine/Binaries/DotNET/UnrealBuildTool.exe CPP Development Win64 -project=“D:/UnrealEngine/Projects/CPP/CPP.uproject” -editorrecompile -progress -NoHotReloadFromIDE
Creating makefile for CPP (no existing makefile)
Performing full C++ include scan (no include cache file)
@progress push 5%
Parsing headers for CPPEditor
Running UnrealHeaderTool “D:\UnrealEngine\Projects\CPP\CPP.uproject” “D:\UnrealEngine\Projects\CPP\Intermediate\Build\Win64\CPPEditor\Development\CPPEditor.uhtmanifest” -LogCmds=“loginit warning, logexit warning, logdatabase error” -Unattended -WarningsAsErrors -installed
Reflection code generated for CPPEditor in 10.449486 seconds
@progress pop
ERROR: Windows SDK v8.1 must be installed in order to build this target.”

I’m Currently using Unreal Engine from the launcher version 4.17.1 with Visual Studio Community 2017 on windows 10 with SDK 8.1 and 10 installed. I only have the one version of Visual Studio’s installed and I did check my envirmomental system variables and didnt see one for VS pointing to tools, so i made one called VS150COMNTOOLS to point to
“D:\Visual Studio\Common7\Tools”
But it didn’t seem to help.

Try reinstalling VS2017

I’m Reinstalling VS 2017 community again now, and I think that I have everything included that is relevant. Though I noticed an option to install the Unreal Launcher from VS, is this something that might help if this instillation doesn’t work?

It’s happened to me before, using a new engine version fixes it

So the installation did work, but I did do a few things differently than before. I made sure all of VS was on my main drive (before part of it was stored off in a different drive) And i made sure that i had all C++ components checked.
Thank you!