BuildCommand.Execute: ERROR: BUILD FAILED

Hello,

I’ve got a few problems compiling my game for Android.

In the I’ve added the last lines. In the attachement is the shortend outlog file (whole version was 5mb, too big to upload)

I’ve tried to compile it on both 4.5.1 as well as 4.7.1 (just for testing purposes)

I could really use some help with this!

Here’s my setup:




[]
MainFrameActions: Packaging (Android (All)): -package-resources:
MainFrameActions: Packaging (Android (All)): [aapt] Creating full resource package…
MainFrameActions: Packaging (Android (All)): [aapt] Unable to add ‘res/color/common_signin_btn_text_dark.xml #generated’: add failed
MainFrameActions: Packaging (Android (All)): [aapt] ERROR: unable to process assets while packaging ‘C:\Users\Kevin\Documents\Unreal Projects\SuperWorld 4.5\Intermediate\Android\APK\bin\ArchysWorld.ap_’
MainFrameActions: Packaging (Android (All)): [aapt] ERROR: packaging of ‘C:\Users\Kevin\Documents\Unreal Projects\SuperWorld 4.5\Intermediate\Android\APK\bin\ArchysWorld.ap_’ failed
MainFrameActions: Packaging (Android (All)): BUILD FAILED
MainFrameActions: Packaging (Android (All)): C:\NVPACK\android-sdk-windows ools\ant\build.xml:932: The following error occurred while executing this line:
MainFrameActions: Packaging (Android (All)): C:\NVPACK\android-sdk-windows ools\ant\build.xml:950: null returned: 1
MainFrameActions: Packaging (Android (All)): Total time: 7 minutes 10 seconds
MainFrameActions: Packaging (Android (All)): BuildCommand.Execute: ERROR: BUILD FAILED
MainFrameActions: Packaging (Android (All)): Program.Main: ERROR: AutomationTool terminated with exception:
MainFrameActions: Packaging (Android (All)): Program.Main: ERROR: Exception in UnrealBuildTool: ERROR: ant.bat failed [/c “C:\NVPACK\apache-ant-1.8.2/bin/ant.bat” debug]
MainFrameActions: Packaging (Android (All)): Stacktrace: bij UnrealBuildTool.Android.UEDeployAndroid.MakeApk(String ProjectName, String ProjectDirectory, String OutputPath
MainFrameActions: Packaging (Android (All)): , String EngineDirectory, Boolean bForDistribution, String CookFlavor, Boolean bMakeSeparateApks)
MainFrameActions: Packaging (Android (All)): bij UnrealBuildTool.Android.UEDeployAndroid.PrepForUATPackageOrDeploy(String ProjectName, String ProjectDirectory, String ExecutablePath, String EngineDirectory, Boolean bForDistribution, String CookFlavor)
MainFrameActions: Packaging (Android (All)): bij AndroidPlatform.Package(ProjectParams Params, DeploymentContext SC, Int32 WorkingCL)
MainFrameActions: Packaging (Android (All)): bij Project.Package(ProjectParams Params, Int32 WorkingCL)
MainFrameActions: Packaging (Android (All)): bij BuildCookRun.DoBuildCookRun(ProjectParams Params)
MainFrameActions: Packaging (Android (All)): bij BuildCommand.Execute()
MainFrameActions: Packaging (Android (All)): bij AutomationTool.Automation.Execute(List1 CommandsToExecute, CaselessDictionary1 Commands)
MainFrameActions: Packaging (Android (All)): bij AutomationTool.Automation.Process(String] CommandLine)
MainFrameActions: Packaging (Android (All)): bij AutomationTool.Program.MainProc(Object Param)
MainFrameActions: Packaging (Android (All)): bij AutomationTool.InternalUtils.RunSingleInstance(MainProc Main, Object Param)
MainFrameActions: Packaging (Android (All)): bij AutomationTool.Program.Main()
MainFrameActions: Packaging (Android (All)): Program.Main: ERROR: ERROR: ant.bat failed [/c “C:\NVPACK\apache-ant-1.8.2/bin/ant.bat” debug]
MainFrameActions: Packaging (Android (All)): ProcessManager.KillAll: Trying to kill 0 spawned processes.
MainFrameActions: Packaging (Android (All)): Program.Main: AutomationTool exiting with ExitCode=1
MainFrameActions: Packaging (Android (All)): Domain_ProcessExit
MainFrameActions: Packaging (Android (All)): ProcessManager.KillAll: Trying to kill 0 spawned processes.
MainFrameActions: Packaging (Android (All)): copying UAT log files…
MainFrameActions: Packaging (Android (All)): RunUAT.bat ERROR: AutomationTool was unable to run successfully.
MainFrameActions: Packaging (Android (All)): BUILD FAILED
[/]

For some reason that “RunUAT.bat ERROR: AutomationTool was unable to run successfully.” haunts many people recently.

I move this to feedback with 1 month link here. It gets better attention there.

Also answerhub is even better place to post this.

Hi ,

Please take a look at our mobile troubleshooting guide here:

If the fixes listed do not help, please make this a post on the answerhub in the bug reports section at http://answers.unrealengine.com so we can assist you in depth. On your answerhub bug report, please ensure to provide the information located on the mobile troubleshooting guide in the “Creating a Bug Report” section.

[=Nawrot;257447]
For some reason that “RunUAT.bat ERROR: AutomationTool was unable to run successfully.” haunts many people recently.

[/]

Unfortunately, the Automation tool error is super generic and could apply to lots of things. The real issue in this particular stack is the ‘ERROR: ant.bat failed [/c “C:\NVPACK\apache-ant-1.8.2/bin/ant.bat” debug]’, which is the Apache Ant/Java part of the TADP installation. How it’s not getting installed correctly is the question. Here is an AnswerHub threadwith a solution that worked for another user, but that seems to only work for fresh projects. I have suggested this fix to yet another user and it worked for fresh project package but not for existing projects. I have advised him to try again after deleting the existing project’s intermediate folder and letting it rebuild new. We will see if that helps.

Hello.
I feel like providing more feedback because this particular error has held me busy the last few days.

My log:

Deleting the existing project’s intermediate folder and exporting again did not help.
I am running the latest TADP version with all the Tools installed.
I have my apk signed (or at least I think I have it signed).

I noticed there is a difference between our logs: I have “failed with args” in front of the path to ant. Does that mean something specific? (I read it had something to do with a non signed apk but mine is signed)
Also this error occurred randomly, I belive, as my app was working just fine with being exported to android ETC1 then suddenly without any Blueprint changes it broke.

EDIT: The error stopped after I doubled the “/” in the path to my .keystore. The first time I did that had no effect. Managed to upload two apk’s on GooglePlay.