Download

Runbat Error: Ant.bat

Hello,

So I’m having some issues with packaging my project. First off, yes I read similar posts, yet they didn’t help me.

MainFrameActions: Packaging (Android (ETC1)):     [javac]   symbol:   variable HttpClientParams
MainFrameActions: Packaging (Android (ETC1)):     [javac]   location: class AndroidHttpClient
MainFrameActions: Packaging (Android (ETC1)):     [javac] Note: Some input files use or override a deprecated API.
MainFrameActions: Packaging (Android (ETC1)):     [javac] Note: Recompile with -Xlint:deprecation for details.
MainFrameActions: Packaging (Android (ETC1)):     [javac] 100 errors
MainFrameActions: Packaging (Android (ETC1)): BUILD FAILED
MainFrameActions: Packaging (Android (ETC1)): C:\NVPACK\android-sdk-windows	ools\ant\build.xml:716: The following error occurred while executing this line:
MainFrameActions: Packaging (Android (ETC1)): C:\NVPACK\android-sdk-windows	ools\ant\build.xml:730: Compile failed; see the compiler error output for details.
MainFrameActions: Packaging (Android (ETC1)): Total time: 22 seconds
MainFrameActions: Packaging (Android (ETC1)): BuildCommand.Execute: ERROR: BUILD FAILED
MainFrameActions: Packaging (Android (ETC1)): Program.Main: ERROR: AutomationTool terminated with exception:
MainFrameActions: Packaging (Android (ETC1)): Program.Main: ERROR: Exception in UnrealBuildTool: ERROR: cmd.exe failed with args /c "C:/NVPACK/apache-ant-1.8.2/bin/ant.bat" release
MainFrameActions: Packaging (Android (ETC1)): Stacktrace:    at UnrealBuildTool.Android.UEDeployAndroid.RunCommandLineProgramAndThrowOnError(String WorkingDirectory, String Command, String Params, String OverrideDesc, Boolean bUseShellExecute)
MainFrameActions: Packaging (Android (ETC1)):    at UnrealBuildTool.Android.UEDeployAndroid.MakeApk(String ProjectName, String ProjectDirectory, String OutputPath, String EngineDirectory, Boolean bForDistribution, String CookFlavor, Boolean bMakeSeparateApks, Boolean bIncrementalPackage, Boolean bDisallowPackagingDataInApk)
MainFrameActions: Packaging (Android (ETC1)):    at UnrealBuildTool.Android.UEDeployAndroid.PrepForUATPackageOrDeploy(String ProjectName, String ProjectDirectory, String ExecutablePath, String EngineDirectory, Boolean bForDistribution, String CookFlavor, Boolean bIsDataDeploy)
MainFrameActions: Packaging (Android (ETC1)):    at AndroidPlatform.Package(ProjectParams Params, DeploymentContext SC, Int32 WorkingCL)
MainFrameActions: Packaging (Android (ETC1)):    at Project.Package(ProjectParams Params, Int32 WorkingCL)
MainFrameActions: Packaging (Android (ETC1)):    at BuildCookRun.DoBuildCookRun(ProjectParams Params)
MainFrameActions: Packaging (Android (ETC1)):    at BuildCommand.Execute()
MainFrameActions: Packaging (Android (ETC1)):    at AutomationTool.Automation.Execute(List`1 CommandsToExecute, CaselessDictionary`1 Commands)
MainFrameActions: Packaging (Android (ETC1)):    at AutomationTool.Automation.Process(String] CommandLine)
MainFrameActions: Packaging (Android (ETC1)):    at AutomationTool.Program.MainProc(Object Param)
MainFrameActions: Packaging (Android (ETC1)):    at AutomationTool.InternalUtils.RunSingleInstance(Action`1 Main, Object Param)
MainFrameActions: Packaging (Android (ETC1)):    at AutomationTool.Program.Main()
MainFrameActions: Packaging (Android (ETC1)): ProcessManager.KillAll: Trying to kill 0 spawned processes.
MainFrameActions: Packaging (Android (ETC1)): Program.Main: AutomationTool exiting with ExitCode=Error_Unknown
MainFrameActions: Packaging (Android (ETC1)): Domain_ProcessExit
MainFrameActions: Packaging (Android (ETC1)): copying UAT log files...
MainFrameActions: Packaging (Android (ETC1)): RunUAT.bat ERROR: AutomationTool was unable to run successfully.
MainFrameActions: Packaging (Android (ETC1)): BUILD FAILED
PackagingResults:Error: Error Unknown Error

With this being the key part:

MainFrameActions: Packaging (Android (ETC1)): BUILD FAILED
MainFrameActions: Packaging (Android (ETC1)): C:\NVPACK\android-sdk-windows	ools\ant\build.xml:716: The following error occurred while executing this line:
MainFrameActions: Packaging (Android (ETC1)): C:\NVPACK\android-sdk-windows	ools\ant\build.xml:730: Compile failed; see the compiler error output for details.
MainFrameActions: Packaging (Android (ETC1)): Total time: 22 seconds
MainFrameActions: Packaging (Android (ETC1)): BuildCommand.Execute: ERROR: BUILD FAILED
MainFrameActions: Packaging (Android (ETC1)): Program.Main: ERROR: AutomationTool terminated with exception:
MainFrameActions: Packaging (Android (ETC1)): Program.Main: ERROR: Exception in UnrealBuildTool: ERROR: cmd.exe failed with args /c "C:/NVPACK/apache-ant-1.8.2/bin/ant.bat" release

So here is my setup:

comp01.png

comp02.png

748dfb5010bd1035bc5d7ecc896622ca4f22ec70.png

dcbd359675a11f267a70830a0898f8b9079f6460.png

comp05.png

My Signingconfig is also setup to match the key.store name and alias.

So what I’ve tried until now:

  • Reinstall Androidworks, installed all the tools, reinstall visual studio 2013
  • Change location Java in setup for a shorter location
  • Checked keystore
  • Tried just shipping without distrubtion

I need some help guys

Is there by any chance you could provide the following logs?

MainFrameActions: Packaging (Android (ETC1)): [javac] 100 errors

It may help.

Hi Penhoat,

Please try changing SDK from “latest” to “matchndk”.