Failed game build

When trying to compile the game on ue4.18 (from github).

I get an error: The following files are set to be staged, but contain restricted folders names:

LokaGame/Content/Interaction/Animations/Interaction/Switch/A_Switch_Off.uasset
LokaGame/Content/Interaction/Props/Switch/Animations/A_IO_Switch_Off.uasset

If these files are intended to be distributed in packaged builds, move the source files out of a restricted folder, or remap them during staging using the following syntax in DefaultGame.ini:
[Staging]
+RemapDirectories=(From=“Foo/NoRedist”, To=“Foo”)

I could not find an example of a solution to the problem.

Just rename “Switch” restricted folder name to “S1witch” for example.

I just ran into this one, as well! Can confirm that renaming my folder called “Switch” to something else cleared it up.

Yup I had the exact same issue and renaming it worked for me too.

Yup I had the exact same issue and renaming it worked for me too.