UNavigationSystem Doesn't Have member FindPathToActorSynchronously

while using UNavigationSystem::FindPathToActorSynchronously(this, GetActorLocation(), PlayerPawn) ue4 says no member but when i put UNavigationSystemV1::FindPathToActorSynchronously(this, GetActorLocation(), PlayerPawn)
error is removed in editor but i again get another error

below is the picture of the error
please help me!!

when using just UNavigationSystem
291241-
][2]

when using UNavigationSystemV1

build.cs file should be modified to
PublicDependencyModuleNames.AddRange(new string[] { “Core”, “CoreUObject”, “Engine”, “InputCore”, “HeadMountedDisplay”, “NavigationSystem” });

UNavigationSystemV1 should be used