Creating a new subclass of BTTask_BlackboardBase in 4.20 crashes the project

I created a new C++ project, added a new class derived from BTTask_BlackboardBase and as soon as the editor recompiles the project I get the following error:

CompilerResultsLog: Error:   MyBTTask_BlackboardBase.cpp.obj : error LNK2001: unresolved external symbol "public: virtual void __cdecl IGameplayTaskOwnerInterface::OnGameplayTaskActivated(class UGameplayTask &)" (?OnGameplayTaskActivated@IGameplayTaskOwnerInterface@@UEAAXAEAVUGameplayTask@@@Z)
CompilerResultsLog: Error:   MyBTTask_BlackboardBase.gen.cpp.obj : error LNK2001: unresolved external symbol "public: virtual void __cdecl IGameplayTaskOwnerInterface::OnGameplayTaskActivated(class UGameplayTask &)" (?OnGameplayTaskActivated@IGameplayTaskOwnerInterface@@UEAAXAEAVUGameplayTask@@@Z)
CompilerResultsLog: Error:   C:\UnrealProjects\Test420\Binaries\Win64\UE4Editor-Test420-6117.dll : fatal error LNK1120: 1 unresolved externals
CompilerResultsLog: ERROR: UBT ERROR: Failed to produce item: C:\UnrealProjects\Test420\Binaries\Win64\UE4Editor-Test420-6117.dll

Looks like you’re missing a dependency - namely “GameplayTasks”.

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