Fail to build on Android

Hello Unreal Community!

I have been trying to build a blank project on Android Shield tablet with Unreal Engine 4.12. I have also try building the project on Galaxy S6 but I end up with the same error. Anybody has any clue what’s going on ? Thanks !

Here is the error log

LogPlayLevel: UnrealBuildTool: ==== Writing new GameActivity.java file to D:\UnrealEngine\unrealengine-custom\Engine\Intermediate/Android/APK\src\com\epicgames\ue4\GameActivity.java ====
LogPlayLevel: UnrealBuildTool: Preparing native code for debugging…
LogPlayLevel: UnrealBuildTool: UnrealBuildTool Exception: ERROR: C://android-ndk-r11c/ndk-build.cmd failed with args APP_ABI="armeabi-v7a " NDK_DEBUG=1
LogPlayLevel: CommandUtils.Run: Run: Took 8.2043081s to run UnrealBuildTool.exe, ExitCode=5
LogPlayLevel: Program.Main: ERROR: AutomationTool terminated with exception: AutomationTool.AutomationException: Command failed (Result:5): D:\UnrealEngine\unrealengine-custom\Engine\Binaries\DotNET\UnrealBuildTool.exe UE4Game Android Development -remoteini=“D:\git\testbye” -noxge -NoHotReloadFromIDE -ignorejunk. See logfile for details: ‘UnrealBuildTool-2
016.07.14-13.15.16.txt’
LogPlayLevel: at AutomationTool.CommandUtils.RunAndLog(String App, String CommandLine, String Logfile, Int32 MaxSuccessCode, String Input, ERunOptions Options, Dictionary2 EnvVars) in D:\UnrealEngine\unrealengine-custom\Engine\Source\Programs\AutomationTool\AutomationUtils\ProcessUtils.cs:line 814 LogPlayLevel: at AutomationTool.CommandUtils.RunUBT(CommandEnvironment Env, String UBTExecutable, String CommandLine, String LogName, Dictionary2 EnvVars) in D:\UnrealEngine\unrealengine-custom\Engine\Source\Programs\AutomationTool\AutomationUtils\UBTUtils.cs:line 52
LogPlayLevel: at 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) in D:\UnrealEngine\unrealengi ne-custom\Engine\Source\Programs\AutomationTool\AutomationUtils\UE4Build.cs:line 355 LogPlayLevel: at AutomationTool.UE4Build.Build(BuildAgenda Agenda, Nullable1 InDeleteBuildProducts, Boolean InUpdateVersionFiles, Boolean InForceNoXGE, Boolean InUseParallelExecutor, Boolean InForceNonUnity, Boolean InForceUnity, Boolean InShowProgress, Dictionary2 PlatformEnvVars, Nullable1 InChangelistNumberOverride, Dictionary2 InTargetToManifest) in D:\UnrealEngine\unrealengine-custom\Engine\Source\Programs\AutomationTool\AutomationUtils\UE4Build.cs:line 1443 LogPlayLevel: at Project.Build(BuildCommand Command, ProjectParams Params, Int32 WorkingCL, ProjectBuildTargets TargetMask) in d:\UnrealEngine\unrealengine-custom\Engine\Source\Programs\AutomationTool\Scripts\BuildProjectCommand.Automation.cs:line 150 LogPlayLevel: at BuildCookRun.DoBuildCookRun(ProjectParams Params) in d:\UnrealEngine\unrealengine-custom\Engine\Source\Programs\AutomationTool\Scripts\BuildCookRun.Automation.cs:line 211 LogPlayLevel: at AutomationTool.BuildCommand.Execute() in D:\UnrealEngine\unrealengine-custom\Engine\Source\Programs\AutomationTool\AutomationUtils\BuildCommand.cs:line 28 LogPlayLevel: at AutomationTool.Automation.Execute(List1 CommandsToExecute, CaselessDictionary1 Commands) in D:\UnrealEngine\unrealengine-custom\Engine\Source\Programs\AutomationTool\AutomationUtils\Automation.cs:line 538 LogPlayLevel: at AutomationTool.Automation.Process(String[] CommandLine) in D:\UnrealEngine\unrealengine-custom\Engine\Source\Programs\AutomationTool\AutomationUtils\Automation.cs:line 509 LogPlayLevel: at AutomationTool.Program.MainProc(Object Param) in D:\UnrealEngine\unrealengine-custom\Engine\Source\Programs\AutomationTool\Program.cs:line 131 LogPlayLevel: at AutomationTool.InternalUtils.RunSingleInstance(Func2 Main, Object Param) in D:\UnrealEngine\unrealengine-custom\Engine\Source\Programs\AutomationTool\AutomationUtils\Utils.cs:line 704
LogPlayLevel: at AutomationTool.Program.Main() in D:\UnrealEngine\unrealengine-custom\Engine\Source\Programs\AutomationTool\Program.cs:line 54
LogPlayLevel: Program.Main: AutomationTool exiting with ExitCode=5 (5)
LogPlayLevel: Domain_ProcessExit
LogPlayLevel: AutomationToolLauncher exiting with ExitCode=5
LogPlayLevel: copying UAT log files…
LogPlayLevel: Completed Launch On Stage: Build Task, Time: 11.011525
LogPlayLevel: BUILD FAILED

Rubanmauve,

Could you please upload your whole error output log as a .txt file?

Thank you!

Hey Rubanmauve,

We have not heard back from you in a few days, so we are marking this post as Resolved for tracking purposes. If you are still experiencing the issue you reported, please respond to this message with additional information and we will offer further assistance.

Thank you!