Unable to create class inherited from UBTTask_BlackboardBase

As on 4.17.1 I had to include both “AIModule” and “GameplayTasks” in the YourProjectName.Build.cs file to make it compile.