Download

Android Packaging Error

I have been following the steps in the Android tutorial and I keep getting a build error. Can anyone help me out? I installed CodeWorks exactly like it said, restarted, set both settings in the Project settings, restarted the editor made sure no other changes were pending and I still get the same error. I can run it on the computer but not on the phone.

LogPlayLevel: UEDeployAndroid.MakeApk:
LogPlayLevel: ====1/15/2017 1:09:01 PM====PREPARING NATIVE CODE=================================================================
LogPlayLevel: UEDeployAndroid.RequiresOBB: APK contains data.
LogPlayLevel: UEDeployAndroid.UpdateProjectProperties:
LogPlayLevel: ====1/15/2017 1:09:01 PM====UPDATING BUILD CONFIGURATION FILES====================================================
LogPlayLevel: Program.Main: ERROR: AutomationTool terminated with exception: System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified
LogPlayLevel: at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
LogPlayLevel: at UnrealBuildTool.UEDeployAndroid.RunCommandLineProgramWithException(String WorkingDirectory, String Command, String Params, String OverrideDesc, Boolean bUseShellExecute)
LogPlayLevel: at UnrealBuildTool.UEDeployAndroid.UpdateProjectProperties(AndroidToolChain ToolChain, String UE4BuildPath, String ProjectName)
LogPlayLevel: at UnrealBuildTool.UEDeployAndroid.MakeApk(AndroidToolChain ToolChain, String ProjectName, String ProjectDirectory, String OutputPath, String EngineDirectory, Boolean bForDistribution, String CookFlavor, Boolean bMakeSeparateApks, Boolean bIncrementalPackage, Boolean bDisallowPackagingDataInApk)
LogPlayLevel: at UnrealBuildTool.UEDeployAndroid.PrepForUATPackageOrDeploy(FileReference ProjectFile, 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 BuildCookRun.ExecuteBuild()
LogPlayLevel: at AutomationTool.BuildCommand.Execute()
LogPlayLevel: at AutomationTool.Automation.Execute(List1 CommandsToExecute, CaselessDictionary1 Commands)
LogPlayLevel: at AutomationTool.Automation.Process(String] Arguments)
LogPlayLevel: at AutomationTool.Program.MainProc(Object Param)
LogPlayLevel: at AutomationTool.InternalUtils.RunSingleInstance(Func`2 Main, Object Param)
LogPlayLevel: at AutomationTool.Program.Main()
LogPlayLevel: Program.Main: AutomationTool exiting with ExitCode=1 (Error_Unknown)
LogPlayLevel: Completed Launch On Stage: Deploy Task, Time: 2.252625
LogPlayLevel: BUILD FAILED
PackagingResults:Error: Error Launch failed! Unknown Error

We’ve had some issues with building for android a while ago, did you make sure you have all the neccesary sdks?

also our problem was that there were the wrong paths in unreal, maybe try set them all here:
dc57517751d6272b3f6fadbaa49ebc5262540ff8.png

When i had problem with “AutomationTool terminatedexception”, it was with plugin problem…If you have any check xxx.uproject and xxx.uplugin with notepad that everything is ok.