C++ to android packaging failed

MainFrameActions: Packaging (Android (ATC)): UnrealBuildTool: Reflection code generated for SIMSVR in 18,2347593 seconds
MainFrameActions: Packaging (Android (ATC)): UnrealBuildTool: Compiling Native code with NDK API ‘android-19’
MainFrameActions: Packaging (Android (ATC)): UnrealBuildTool: Performing 6 actions (2 in parallel)
MainFrameActions: Packaging (Android (ATC)): UnrealBuildTool: [1/6] clang++.exe UELinkerFixupsName.h [armv7-es2]
MainFrameActions: Packaging (Android (ATC)): UnrealBuildTool: [2/6] clang++.exe Module.UE4Duino.cpp [armv7-es2]
MainFrameActions: Packaging (Android (ATC)): UnrealBuildTool: [3/6] clang++.exe UE4Duino.generated.cpp [armv7-es2]
MainFrameActions: Packaging (Android (ATC)): UnrealBuildTool: In file included from In file included from C:/Users/nadhem/Documents/Unreal Projects/SIMSVR/Plugins/UE4Duino/Intermediate/Build/Android/UE4/Development/UE4Duino/Module.UE4Duino.cppC:/Users/nadhem/Documents/Unreal Projects/SIMSVR/Plugins/U
MainFrameActions: Packaging (Android (ATC)): E4Duino/Intermediate/Build/Android/UE4/Inc/UE4Duino/UE4Duino.generated.cpp:9:
MainFrameActions: Packaging (Android (ATC)): UnrealBuildTool: In file included from …/…/…/…/…/Users/nadhem/Documents/Unreal Projects/SIMSVR/Plugins/UE4Duino/Intermediate/Build/Android/UE4/Inc/UE4Duino/UE4Duino.generated.dep.h:9:
MainFrameActions: Packaging (Android (ATC)): UnrealBuildTool: In file included from …/…/…/…/…/Users/nadhem/Documents/Unreal Projects/SIMSVR/Plugins/UE4Duino/Source/UE4Duino\Private/ThreadBP.h:6:
MainFrameActions: Packaging (Android (ATC)): UnrealBuildTool: C:/Users/nadhem/Documents/Unreal Projects/SIMSVR/Plugins/UE4Duino/Source/UE4Duino/Private/SerialClass.h(17,10) : fatal error: ‘windows.h’ file not found
MainFrameActions: Packaging (Android (ATC)): UnrealBuildTool: :2:
MainFrameActions: Packaging (Android (ATC)): UnrealBuildTool: In file included from C:\Users\nadhem\Documents\Unreal Projects\SIMSVR\Plugins\UE4Duino\Source\UE4Duino\Private\SerialClass.cpp:4:
MainFrameActions: Packaging (Android (ATC)): UnrealBuildTool: C:/Users/nadhem/Documents/Unreal Projects/SIMSVR/Plugins/UE4Duino/Source/UE4Duino/Private/SerialClass.h(17,10) : fatal error: ‘windows.h’ file not found
MainFrameActions: Packaging (Android (ATC)): UnrealBuildTool: #include “windows.h”
MainFrameActions: Packaging (Android (ATC)): UnrealBuildTool: ^
MainFrameActions: Packaging (Android (ATC)): UnrealBuildTool: #include “windows.h”
MainFrameActions: Packaging (Android (ATC)): UnrealBuildTool: ^
MainFrameActions: Packaging (Android (ATC)): UnrealBuildTool: 1 error generated.
MainFrameActions: Packaging (Android (ATC)): UnrealBuildTool: 1 error generated.
MainFrameActions: Packaging (Android (ATC)): UnrealBuildTool: [4/6] clang++.exe UELinkerFixups.cpp [armv7-es2]
MainFrameActions: Packaging (Android (ATC)): UnrealBuildTool: ERROR: UBT ERROR: Failed to produce item: C:\Users\nadhem\Documents\Unreal Projects\SIMSVR\Plugins\UE4Duino\Binaries\Android\UE4-UE4Duino-armv7-es2.a
MainFrameActions: Packaging (Android (ATC)): UnrealBuildTool: Total build time: 141,21 seconds
MainFrameActions: Packaging (Android (ATC)): CommandUtils.Run: Run: Took 141,4354905s to run UnrealBuildTool.exe, ExitCode=5
MainFrameActions: Packaging (Android (ATC)): Program.Main: ERROR: AutomationTool terminated with exception: AutomationTool.AutomationException: Command failed (Result:5): C:\Program Files (x86)\Epic Games\4.12\Engine\Binaries\DotNET\UnrealBuildTool.exe SIMSVR Android Development -Project=“C:\Users\nadhem\Documents\Unreal Projects\SIMSVR\SIMSVR.uproject” “C:
\Users\nadhem\Documents\Unreal Projects\SIMSVR\SIMSVR.uproject” -remoteini=“C:\Users\nadhem\Documents\Unreal Projects\SIMSVR” -noxge -NoHotReloadFromIDE -ignorejunk. See logfile for details: ‘UnrealBuildTool-2016.08.09-00.21.13.txt’
MainFrameActions: Packaging (Android (ATC)): à AutomationTool.CommandUtils.RunAndLog(String App, String CommandLine, String Logfile, Int32 MaxSuccessCode, String Input, ERunOptions Options, Dictionary2 EnvVars) MainFrameActions: Packaging (Android (ATC)): à AutomationTool.CommandUtils.RunUBT(CommandEnvironment Env, String UBTExecutable, String CommandLine, String LogName, Dictionary2 EnvVars)
MainFrameActions: Packaging (Android (ATC)): à AutomationTool.UE4Build.BuildWithUBT(String TargetName, UnrealTargetPlatform TargetPlatform, String Config, FileReference UprojectPath, Boolean ForceMonolithic, Boolean ForceNonUnity, Boolean ForceDebugInfo, Boolean ForceFlushMac, Boolean DisableXGE, String InAddArgs, Boolean ForceUnity, Dictionary2 EnvVars) MainFrameActions: Packaging (Android (ATC)): à AutomationTool.UE4Build.Build(BuildAgenda Agenda, Nullable1 InDeleteBuildProducts, Boolean InUpdateVersionFiles, Boolean InForceNoXGE, Boolean InUseParallelExecutor, Boolean InForceNonUnity, Boolean InForceUnity, Boolean InShowProgress, Dictionary2 PlatformEnvVars, Nullable1 InChangelistNumberOverride, Dic
tionary2 InTargetToManifest) MainFrameActions: Packaging (Android (ATC)): à Project.Build(BuildCommand Command, ProjectParams Params, Int32 WorkingCL, ProjectBuildTargets TargetMask) MainFrameActions: Packaging (Android (ATC)): à BuildCookRun.DoBuildCookRun(ProjectParams Params) MainFrameActions: Packaging (Android (ATC)): à AutomationTool.BuildCommand.Execute() MainFrameActions: Packaging (Android (ATC)): à AutomationTool.Automation.Execute(List1 CommandsToExecute, CaselessDictionary1 Commands) MainFrameActions: Packaging (Android (ATC)): à AutomationTool.Automation.Process(String[] CommandLine) MainFrameActions: Packaging (Android (ATC)): à AutomationTool.Program.MainProc(Object Param) MainFrameActions: Packaging (Android (ATC)): à AutomationTool.InternalUtils.RunSingleInstance(Func2 Main, Object Param)
MainFrameActions: Packaging (Android (ATC)): à AutomationTool.Program.Main()
MainFrameActions: Packaging (Android (ATC)): Program.Main: AutomationTool exiting with ExitCode=5 (5)
MainFrameActions: Packaging (Android (ATC)): Domain_ProcessExit
MainFrameActions: Packaging (Android (ATC)): copying UAT log files…
MainFrameActions: Packaging (Android (ATC)): BUILD FAILED
PackagingResults:Error: Error Unknown Error

Hello,

  • Please upload the full log located in your project’s Saved->Logs folder after you attempt to package again
  • Are you able to package a clean project successfully?
  • Are you using a binary or source version of the engine?
  • Are you using any plugins?

Hello,

I am marking this topic as resolved for tracking purposes, as we have not heard from you in a few days. If this issue persists, feel free to respond to this thread. For any new issues, please create a new Answerhub topic.

Have a great day!