Cannot packacge or build any non-editor configuration

When building in DebugGame:
UATHelper: Packaging (Windows (64-bit)): ERROR: UBT ERROR: Failed to produce item: D:\UnrealProjects\Game\Binaries\Win64\Game-Win64-DebugGame.exe
UATHelper: Packaging (Windows (64-bit)): Total build time: 4.45 seconds (Local executor: 0.00 seconds)
UATHelper: Packaging (Windows (64-bit)): Took 4.630325s to run UnrealBuildTool.exe, ExitCode=5
UATHelper: Packaging (Windows (64-bit)): ERROR: Command failed (Result:5): C:\Program Files\Epic Games\UE_4.18\Engine\Binaries\DotNET\UnrealBuildTool.exe Game Win64 DebugGame -Project=D:\UnrealProjects\Game\Game.uproject D:\UnrealProjects\Game\Game.uproject -NoUBTMakefiles -remoteini=“D:\UnrealProjects\New
VSoccer” -skipdeploy -noxge -NoHotReload -ignorejunk. See logfile for details: ‘UnrealBuildTool-2018.01.11-11.18.40.txt’

When building Development:
UATHelper: Packaging (Windows (64-bit)): ERROR: UBT ERROR: Failed to produce item: D:\UnrealProjects\Game\Binaries\Win64\Game.exe
UATHelper: Packaging (Windows (64-bit)): Total build time: 4.51 seconds (Local executor: 0.00 seconds)
UATHelper: Packaging (Windows (64-bit)): Took 4.6796329s to run UnrealBuildTool.exe, ExitCode=5
UATHelper: Packaging (Windows (64-bit)): ERROR: Command failed (Result:5): C:\Program Files\Epic Games\UE_4.18\Engine\Binaries\DotNET\UnrealBuildTool.exe Game Win64 Development -Project=D:\UnrealProjects\Game\Game.uproject D:\UnrealProjects\Game\Game.uproject -NoUBTMakefiles -remoteini=“D:\UnrealProjects\Game” -skipdeploy -noxge -NoHotReload -ignorejunk. See logfile for details: ‘UnrealBuildTool-2018.01.11-11.16.14.txt’

When building shipping:

UATHelper: Packaging (Windows (64-bit)): ERROR: ERROR: Non-editor build cannot depend on non-redistributable modules. C:\Program Files\Epic Games\UE_4.18\Engine\Binaries\Win64\Android\UE4-AndroidDeviceDetection-Win64-Shipping.lib depends on ‘AndroidDeviceDetection’.
UATHelper: Packaging (Windows (64-bit)): ERROR: Non-editor build cannot depend on non-redistributable modules.
UATHelper: Packaging (Windows (64-bit)): Took 6.2709255s to run UnrealBuildTool.exe, ExitCode=5
UATHelper: Packaging (Windows (64-bit)): ERROR: Command failed (Result:5): C:\Program Files\Epic Games\UE_4.18\Engine\Binaries\DotNET\UnrealBuildTool.exe Game Win64 Shipping -Project=D:\UnrealProjects\Game\Game.uproject D:\UnrealProjects\Game\Game.uproject -NoUBTMakefiles -remoteini=“D:\UnrealProjects\Game” -skipdeploy -noxge -generatemanifest -NoHotReload. See logfile for details: ‘UnrealBuildTool-2018.01.11-11.12.26.txt’