The project could not be compiled. Would you like to open it in Visual Studio?

Need help. I’m new to UE4, i watched youtube tutorial how to create new project, But when I try to make a template in C++ blank I keep getting this error. I’m using visual studio 2017, And have windows 10.

The project could not be compiled. Would you like to open it in Visual Studio?

Running C:/Program Files/Epic Games/UE_4.15/Engine/Binaries/DotNET/UnrealBuildTool.exe test1 Development Win64 -project=“C:/Users//Documents/Unreal Projects/test1/test1.uproject” -editorrecompile -progress -NoHotReloadFromIDE
Performing full C++ include scan (building a new target)
Creating makefile for test1 (no existing makefile)
@progress push 5%
Parsing headers for test1Editor
Running UnrealHeaderTool “C:\Users\Documents\Unreal Projects\test1\test1.uproject” “C:\Users\Documents\Unreal Projects\test1\Intermediate\Build\Win64\test1Editor\Development\test1Editor.uhtmanifest” -LogCmds=“loginit warning, logexit warning, logdatabase error” -Unattended -WarningsAsErrors -installed
Reflection code generated for test1Editor in 3.4784586 seconds
@progress pop
Performing 11 actions (2 in parallel)
[2/11] Resource ModuleVersionResource.rc.inl
PCH.test1.cpp
[3/11] Resource PCLaunch.rc
test1.cpp
test1Character.cpp
test1GameMode.cpp
test1HUD.cpp
test1Projectile.cpp
test1.generated.cpp
[10/11] Link UE4Editor-test1.dll
[11/11] Link UE4Editor-test1.lib
Creating library C:\Users\Documents\Unreal Projects\test1\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-test1.suppressed.lib and object C:\Users\Documents\Unreal Projects\test1\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-test1.suppressed.exp
Creating library C:\Users\Documents\Unreal Projects\test1\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-test1.lib and object C:\Users\Documents\Unreal Projects\test1\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-test1.exp
test1GameMode.cpp.obj : error LNK2001: unresolved external symbol “public: virtual bool __cdecl AGameModeBase::SetPause(class APlayerController *,class TBaseDelegate)” (?SetPause@AGameModeBase@@UEAA_NPEAVAPlayerController@@anonymous_user_e71e0d8a1?$TBaseDelegate@_N$$$V@@@Z)
test1.generated.cpp.obj : error LNK2001: unresolved external symbol “public: virtual bool __cdecl AGameModeBase::SetPause(class APlayerController *,class TBaseDelegate)” (?SetPause@AGameModeBase@@UEAA_NPEAVAPlayerController@@anonymous_user_e71e0d8a1?$TBaseDelegate@_N$$$V@@@Z)
C:\Users\Documents\Unreal Projects\test1\Binaries\Win64\UE4Editor-test1.dll : fatal error LNK1120: 1 unresolved externals
ERROR: UBT ERROR: Failed to produce item: C:\Users\Documents\Unreal Projects\test1\Binaries\Win64\UE4Editor-test1.dll
Total build time: 28.79 seconds (Local executor: 0.00 seconds)

Ok so after updating UE 4.15 to UE 4.18.3 , and reninstalling visual studio, i was finally able to compile the project successfully.