x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Android packaging errors

I am - again - having issues getting my project to compile for Android. Trying to port it to 4.14 and I'm getting cryptic and unhelpful errors.

UATHelper: Packaging (Android (All)): UnrealBuildTool: BUILD FAILED UATHelper: Packaging (Android (All)): UnrealBuildTool: D:\NVPACK_1R5\android-sdk-windows\tools\ant\build.xml:650: The following error occurred while executing this line: UATHelper: Packaging (Android (All)): UnrealBuildTool: D:\NVPACK_1R5\android-sdk-windows\tools\ant\build.xml:695: null returned: 1 UATHelper: Packaging (Android (All)): UnrealBuildTool: UATHelper: Packaging (Android (All)): UnrealBuildTool: Total time: 23 seconds UATHelper: Packaging (Android (All)): UnrealBuildTool: UnrealBuildTool Exception: System.IO.FileNotFoundException: Could not find file 'D:\Users\Chad Robert Morgan\Documents\Unreal Projects\TLR_EndlessNightmare\Intermediate/Android/APK/bin/TLR_EndlessNightmare-debug.apk'. UATHelper: Packaging (Android (All)): UnrealBuildTool: File name: 'D:\Users\Chad Robert Morgan\Documents\Unreal Projects\TLR_EndlessNightmare\Intermediate/Android/APK/bin/TLR_EndlessNightmare-debug.apk' UATHelper: Packaging (Android (All)): UnrealBuildTool: at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) UATHelper: Packaging (Android (All)): UnrealBuildTool: at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite, Boolean checkHost) UATHelper: Packaging (Android (All)): UnrealBuildTool: at UnrealBuildTool.UEDeployAndroid.MakeApk(AndroidToolChain ToolChain, String ProjectName, String ProjectDirectory, String OutputPath, String EngineDirectory, Boolean bForDistribution, String CookFlavor, Boolean bMakeSeparateApks, Boolean bIncrementalPackage, Boolean bDisallowPackagingDataInApk) UATHelper: Packaging (Android (All)): UnrealBuildTool: at UnrealBuildTool.UEDeployAndroid.PrepTargetForDeployment(UEBuildTarget InTarget) UATHelper: Packaging (Android (All)): UnrealBuildTool: at UnrealBuildTool.UnrealBuildTool.DoPostStartupStuffThatCanAccessConfigs(String[] Arguments) UATHelper: Packaging (Android (All)): CommandUtils.Run: Run: Took 77.542s to run UnrealBuildTool.exe, ExitCode=5 UATHelper: Packaging (Android (All)): Program.Main: ERROR: AutomationTool terminated with exception: AutomationTool.CommandUtils+CommandFailedException: Command failed (Result:5): D:\Program Files (x86)\Epic Games\4.14\Engine\Binaries\DotNET\UnrealBuildTool.exe TLR_EndlessNightmare Android Shipping -Project="D:\Users\Chad Robert Morgan\Documents\Unreal Proje cts\TLR_EndlessNightmare\TLR_EndlessNightmare.uproject" "D:\Users\Chad Robert Morgan\Documents\Unreal Projects\TLR_EndlessNightmare\TLR_EndlessNightmare.uproject" -remoteini="D:\Users\Chad Robert Morgan\Documents\Unreal Projects\TLR_EndlessNightmare" -noxge -NoHotReload -ignorejunk. See logfile for details: 'UnrealBuildTool-2017.02.12-19.29.39.txt' UATHelper: Packaging (Android (All)): at AutomationTool.CommandUtils.RunAndLog(String App, String CommandLine, String Logfile, Int32 MaxSuccessCode, String Input, ERunOptions Options, Dictionary`2 EnvVars, SpewFilterCallbackType SpewFilterCallback) UATHelper: Packaging (Android (All)): at AutomationTool.CommandUtils.RunAndLog(CommandEnvironment Env, String App, String CommandLine, String LogName, Int32 MaxSuccessCode, String Input, ERunOptions Options, Dictionary`2 EnvVars, SpewFilterCallbackType SpewFilterCallback) UATHelper: Packaging (Android (All)): at AutomationTool.CommandUtils.RunUBT(CommandEnvironment Env, String UBTExecutable, String CommandLine, String LogName, Dictionary`2 EnvVars) UATHelper: Packaging (Android (All)): at AutomationTool.CommandUtils.RunUBT(CommandEnvironment Env, String UBTExecutable, FileReference Project, String Target, String Platform, String Config, String AdditionalArgs, String LogName, Dictionary`2 EnvVars) UATHelper: Packaging (Android (All)): 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, Dictionary`2 EnvVars) UATHelper: Packaging (Android (All)): at AutomationTool.UE4Build.Build(BuildAgenda Agenda, Nullable`1 InDeleteBuildProducts, Boolean InUpdateVersionFiles, Boolean InForceNoXGE, Boolean InUseParallelExecutor, Boolean InForceNonUnity, Boolean InForceUnity, Boolean InShowProgress, Dictionary`2 PlatformEnvVars, Nullable`1 InChangelistNumberOverride, Dictionar y`2 InTargetToManifest) UATHelper: Packaging (Android (All)): at Project.Build(BuildCommand Command, ProjectParams Params, Int32 WorkingCL, ProjectBuildTargets TargetMask) UATHelper: Packaging (Android (All)): at BuildCookRun.DoBuildCookRun(ProjectParams Params) UATHelper: Packaging (Android (All)): at BuildCookRun.ExecuteBuild() UATHelper: Packaging (Android (All)): at AutomationTool.BuildCommand.Execute() UATHelper: Packaging (Android (All)): at AutomationTool.Automation.Execute(List`1 CommandsToExecute, CaselessDictionary`1 Commands) UATHelper: Packaging (Android (All)): at AutomationTool.Automation.Process(String[] Arguments) UATHelper: Packaging (Android (All)): at AutomationTool.Program.MainProc(Object Param) UATHelper: Packaging (Android (All)): at AutomationTool.InternalUtils.RunSingleInstance(Func`2 Main, Object Param) UATHelper: Packaging (Android (All)): at AutomationTool.Program.Main() UATHelper: Packaging (Android (All)): Program.Main: AutomationTool exiting with ExitCode=5 (5) UATHelper: Packaging (Android (All)): BUILD FAILED PackagingResults:Error: Error Unknown Error

Seems like I've had to solve for this in the past. I wish Android development was a bit more simple, seems I'm always fighting to get it to compile correct :-(

Product Version: UE 4.14
Tags:
more ▼

asked Feb 13 '17 at 03:34 AM in Packaging & Deployment

avatar image

Spectral Ink
224 10 15 23

avatar image Samantha Sutton ♦♦ STAFF Feb 13 '17 at 07:43 PM

Spectral Ink,

In order to better assist you, could you please upload your Android SDK from Project Settings > Android SDK? It'd also be helpful if you could provide me a screenshot of the Android Codeworks version you're on and the complete error logs uploaded as a .txt file.

Thank you!

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

After further research, I think it might be an issue with a third-party plug-in. I'll follow up when I have something more concrete. Thank you for responding and looking into it.

more ▼

answered Feb 13 '17 at 09:55 PM

avatar image

Spectral Ink
224 10 15 23

avatar image Samantha Sutton ♦♦ STAFF Feb 14 '17 at 08:11 PM

You're very welcome. Please let me know if it happens to be on our end.

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question