When add "#include "Engine/DemoNetDriver.h"",there are so many errors in building as show

1>e:\EpicGames\UE_4.20\Engine\Source\Runtime\NetworkReplayStreaming\NetworkReplayStreaming\Public\NetworkReplayStreaming.h(47): error C2039: ‘GetObjectW’: is not a member of ‘FJsonSerializerBase’
1> e:\EpicGames\UE_4.20\Engine\Source\Runtime\Json\Public\Serialization/JsonSerializerMacros.h(148): note: see declaration of ‘FJsonSerializerBase’
1>e:\EpicGames\UE_4.20\Engine\Source\Runtime\NetworkReplayStreaming\NetworkReplayStreaming\Public\NetworkReplayStreaming.h(47): error C2227: left of ‘->HasTypedField’ must point to class/struct/union/generic type
1>e:\EpicGames\UE_4.20\Engine\Source\Runtime\NetworkReplayStreaming\NetworkReplayStreaming\Public\NetworkReplayStreaming.h(47): error C2227: left of ‘->GetArrayField’ must point to class/struct/union/generic type
1>e:\EpicGames\UE_4.20\Engine\Source\Runtime\NetworkReplayStreaming\NetworkReplayStreaming\Public\NetworkReplayStreaming.h(47): error C2228: left of ‘.CreateConstIterator’ must have class/struct/union
1>e:\EpicGames\UE_4.20\Engine\Source\Runtime\NetworkReplayStreaming\NetworkReplayStreaming\Public\NetworkReplayStreaming.h(47): error C3536: ‘It’: cannot be used before it is initialized
1>e:\EpicGames\UE_4.20\Engine\Source\Runtime\NetworkReplayStreaming\NetworkReplayStreaming\Public\NetworkReplayStreaming.h(47): error C2100: illegal indirection
1>e:\EpicGames\UE_4.20\Engine\Source\Runtime\NetworkReplayStreaming\NetworkReplayStreaming\Public\NetworkReplayStreaming.h(47): error C2227: left of ‘->AsObject’ must point to class/struct/union/generic type

I have no idea about this error,when there is no ’ GetObjectW’ function.How to fix it,thank you !

Hi!
its been four years :sweat_smile:
I am facing same issue
Did you ever find what was causing yours?

Thanks :slightly_smiling_face: