Build.xml does not exist! - Launching on Android

I get an error while building the flying template for Android.

My situation: Windows 10; I had Android installed, so I removed it from the Environment Variables; I installed everything recommended from AndroidWorks; I restarted. I opened up a clean Flying template, changed a few settings (like Platforms: Android only, all textures, debug build), I set up app signing etc and tried to launch on Nexus 4.

Here is the result:

LogPlayLevel: UEDeployAndroid.MakeApk:
LogPlayLevel: ====2/27/2016 15:27:20====PERFORMING FINAL APK PACKAGE OPERATION================================================
LogPlayLevel: UEDeployAndroid.RunCommandLineProgramAndThrowOnError: Making .apk with Ant... (note: it's safe to ignore javac obsolete warnings)
LogPlayLevel: Buildfile: build.xml does not exist!
LogPlayLevel: Build failed
LogPlayLevel: BuildCommand.Execute: ERROR: BUILD FAILED
LogPlayLevel: Program.Main: ERROR: AutomationTool terminated with exception:
LogPlayLevel: Program.Main: ERROR: Exception in UnrealBuildTool: ERROR: cmd.exe failed with args /c "C:\\apache-ant-1.8.2/bin/ant.bat" debug
LogPlayLevel: Stacktrace:    at UnrealBuildTool.Android.UEDeployAndroid.RunCommandLineProgramAndThrowOnError(String WorkingDirectory, String Command, String Params, String OverrideDesc, Boolean bUseShellExecute)
LogPlayLevel:    at UnrealBuildTool.Android.UEDeployAndroid.MakeApk(String ProjectName, String ProjectDirectory, String OutputPath, String EngineDirectory, Boolean bForDistribution, String CookFlavor, Boolean bMakeSeparateApks, Boolean bIncrementalPackage, Boolean bDisallowPackagingDataInApk)
LogPlayLevel:    at UnrealBuildTool.Android.UEDeployAndroid.PrepForUATPackageOrDeploy(String ProjectName, String ProjectDirectory, String ExecutablePath, String EngineDirectory, Boolean bForDistribution, String CookFlavor, Boolean bIsDataDeploy)
LogPlayLevel:    at AndroidPlatform.Deploy(ProjectParams Params, DeploymentContext SC)
LogPlayLevel:    at Project.Deploy(ProjectParams Params)
LogPlayLevel:    at BuildCookRun.DoBuildCookRun(ProjectParams Params)
LogPlayLevel:    at BuildCommand.Execute()
LogPlayLevel:    at AutomationTool.Automation.Execute(List`1 CommandsToExecute, CaselessDictionary`1 Commands)
LogPlayLevel:    at AutomationTool.Automation.Process(String[] CommandLine)
LogPlayLevel:    at AutomationTool.Program.MainProc(Object Param)
LogPlayLevel:    at AutomationTool.InternalUtils.RunSingleInstance(Action`1 Main, Object Param)
LogPlayLevel:    at AutomationTool.Program.Main()
LogPlayLevel: ProcessManager.KillAll: Trying to kill 0 spawned processes.
LogPlayLevel: Program.Main: AutomationTool exiting with ExitCode=Error_Unknown
LogPlayLevel: Domain_ProcessExit
LogPlayLevel: copying UAT log files...
LogPlayLevel: RunUAT.bat ERROR: AutomationTool was unable to run successfully.
LogPlayLevel: Completed Launch On Stage: Deploy Task, Time: 6.506240
LogPlayLevel: BUILD FAILED
PackagingResults:Error: Error Launch failed! Unknown Error

Please upload a screenshot of your Android SDK and provide a full log for me to review. Also, which version of the engine are you on? Have you tested this in any other project or any other version of the engine?

Thanks!

Hey

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!

4.10.4, Android 6 (API 23) installed. Had the same problem at the packaging step.
[link text][1]

85958-boxjump+output+log.txt (247 KB)

Make sure that your Android SDK settings are similar to the following:

78885-androidsdk.png

I ensured the above and the issue is gone now. Thanks!

You’re welcome! :slight_smile:

I had similar issues.

My ANT directory was not being found despite the environment variable being properly set. Updating the window in this answer fixed that issue.

I also changed my NDK API Level to “latest” instead of, and that fixed my second issue. My AndroidSDK install has 21-24, so of course targeting 19 didn’t work.

(oops! This answer was very helpful. I only meant to clarify the vs latest option, this answer should remain the accepted answer.)

Please follow the information in [this link][1] as it should resolve the issues you’re running in to.

Thanks!

Can't launch and build for Android - Mobile - Epic Developer Community Forums