Hot reload fail

i have been having these problems a lot every time i try to bulid a bttask it tells me hot reload fail to compile it maullay
so i close the editor and bulid when i bulid i get failed but don’t know how to exactly fix it then i know if i open up the editor it says a module is missing. need help. here’s the fail lines

>MyBTTask_MoveTo.cpp.obj : error LNK2001: unresolved external symbol "public: virtual void __cdecl IGameplayTaskOwnerInterface::OnGameplayTaskActivated(class UGameplayTask &)" (?OnGameplayTaskActivated@IGameplayTaskOwnerInterface@@UEAAXAEAVUGameplayTask@@@Z)
1>MyBTTask_MoveTo.gen.cpp.obj : error LNK2001: unresolved external symbol "public: virtual void __cdecl IGameplayTaskOwnerInterface::OnGameplayTaskActivated(class UGameplayTask &)" (?OnGameplayTaskActivated@IGameplayTaskOwnerInterface@@UEAAXAEAVUGameplayTask@@@Z)

ERROR : UBT error : Failed to produce item: C:\Users\flyea\OneDrive\Documents\Unreal Projects\Project\Binaries\Win64\UE4Editor-Project-2823.dll

In your project Build.cs file… Did you add the dependency modules? For working with BTTask you’ll want to add the “AIModule” and “GameplayTasks” modules.

Before:
PublicDependencyModuleNames.AddRange(new string[] { “Core”, “CoreUObject”, “Engine”, “InputCore”, “HeadMountedDisplay” });

After:
PublicDependencyModuleNames.AddRange(new string[] { “Core”, “CoreUObject”, “Engine”, “InputCore”, “HeadMountedDisplay”, “AIModule”, “GameplayTasks” });

I’m guessing that is way it is complaining to you about modules loaded. Hope it helps.