Description

Android is failing to package when GoogleVR is enabled

UATHelper: Packaging (Android (ATC)): UnrealBuildTool: BUILD FAILED
UATHelper: Packaging (Android (ATC)): UnrealBuildTool: C:\NVPACK\android-sdk-windows\tools\ant\build.xml:597: The following error occurred while executing this line:
UATHelper: Packaging (Android (ATC)): UnrealBuildTool: C:\NVPACK\android-sdk-windows\tools\ant\build.xml:649: The following error occurred while executing this line:
UATHelper: Packaging (Android (ATC)): UnrealBuildTool: C:\NVPACK\android-sdk-windows\tools\ant\build.xml:694: null returned: 1
UATHelper: Packaging (Android (ATC)): UnrealBuildTool: 
UATHelper: Packaging (Android (ATC)): UnrealBuildTool: Total time: 19 seconds
UATHelper: Packaging (Android (ATC)): UnrealBuildTool: UnrealBuildTool Exception: System.IO.FileNotFoundException: Could not find file 'D:\MyProjects\MyProject5\Intermediate/Android/APK/bin/MyProject5-debug.apk'.
UATHelper: Packaging (Android (ATC)): UnrealBuildTool: File name: 'D:\MyProjects\MyProject5\Intermediate/Android/APK/bin/MyProject5-debug.apk'
UATHelper: Packaging (Android (ATC)): UnrealBuildTool:    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
UATHelper: Packaging (Android (ATC)): UnrealBuildTool:    at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite, Boolean checkHost)
UATHelper: Packaging (Android (ATC)): 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 (ATC)): UnrealBuildTool:    at UnrealBuildTool.UEDeployAndroid.PrepTargetForDeployment(UEBuildTarget InTarget)
UATHelper: Packaging (Android (ATC)): UnrealBuildTool:    at UnrealBuildTool.UnrealBuildTool.DoPostStartupStuffThatCanAccessConfigs(String[] Arguments)
UATHelper: Packaging (Android (ATC)): CommandUtils.Run: Run: Took 76.1991594s to run UnrealBuildTool.exe, ExitCode=5
UATHelper: Packaging (Android (ATC)): Program.Main: ERROR: AutomationTool terminated with exception: AutomationTool.CommandUtils+CommandFailedException: Command failed (Result:5): D:\Epic Games\Main\Engine\Binaries\DotNET\UnrealBuildTool.exe MyProject5 Android Development -Project=D:\MyProjects\MyProject5\MyProject5.uproject  D:\MyProjects\MyProject5\MyProje
ct5.uproject  -remoteini="D:\MyProjects\MyProject5" -noxge -NoHotReload -ignorejunk. See logfile for details: 'UnrealBuildTool-2016.10.12-16.03.58.txt' 
UATHelper: Packaging (Android (ATC)):    at AutomationTool.CommandUtils.RunAndLog(String App, String CommandLine, String Logfile, Int32 MaxSuccessCode, String Input, ERunOptions Options, Dictionary`2 EnvVars, SpewFilterCallbackType SpewFilterCallback)
UATHelper: Packaging (Android (ATC)):    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 (ATC)):    at AutomationTool.CommandUtils.RunUBT(CommandEnvironment Env, String UBTExecutable, String CommandLine, String LogName, Dictionary`2 EnvVars)
UATHelper: Packaging (Android (ATC)):    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 (ATC)):    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 (ATC)):    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 (ATC)):    at Project.Build(BuildCommand Command, ProjectParams Params, Int32 WorkingCL, ProjectBuildTargets TargetMask)
UATHelper: Packaging (Android (ATC)):    at BuildCookRun.DoBuildCookRun(ProjectParams Params)
UATHelper: Packaging (Android (ATC)):    at AutomationTool.BuildCommand.Execute()
UATHelper: Packaging (Android (ATC)):    at AutomationTool.Automation.Execute(List`1 CommandsToExecute, CaselessDictionary`1 Commands)
UATHelper: Packaging (Android (ATC)):    at AutomationTool.Automation.Process(String[] Arguments)
UATHelper: Packaging (Android (ATC)):    at AutomationTool.Program.MainProc(Object Param)
UATHelper: Packaging (Android (ATC)):    at AutomationTool.InternalUtils.RunSingleInstance(Func`2 Main, Object Param)
UATHelper: Packaging (Android (ATC)):    at AutomationTool.Program.Main()
UATHelper: Packaging (Android (ATC)): Program.Main: AutomationTool exiting with ExitCode=5 (5)
UATHelper: Packaging (Android (ATC)): BUILD FAILED
Steps to Reproduce
  1. Create a BP FirstPerson template with Mobile/Tablet, Scalable 2D/3D, and No Starter Content
  2. Enable the GoogleVR plugin and restart the editor
  3. Click Configure Now under APKPackaging
  4. Set Minimum and Target SDK to 21
  5. Enable Support arm64 and disable armv7
  6. Click on Configure Now under Google Play Services
  7. Go to Package -> Android (ATC)

Result: Packaging fails

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-37236 in the post.

2
Login to Vote

Cannot Reproduce
ComponentUE - Platform - XR
Affects Versions4.14
Target Fix4.14
CreatedOct 12, 2016
ResolvedOct 26, 2016
UpdatedSep 16, 2019
View Jira Issue