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"

System.IO.FileNotFoundException Can't find 'VR-debug.apk' - Packaging for Android/Daydream

Hi all,

I keep getting a build fail when packaging for Android/Daydream VR, it's looking for something called VR-debug.apk ("VR" is my project name)? That apk does indeed not exist at that directory location, but why would it need another apk to package an apk?

I've also got the Android SDKs installed that were suggested as a fix in other posts.

alt text

Thanks in advance.

UATHelper: Packaging (Android (ATC)): UnrealBuildTool: Total time: 1 second UATHelper: Packaging (Android (ATC)): UnrealBuildTool: UnrealBuildTool Exception: System.IO.FileNotFoundException: Could not find file 'C:\Users\sdunf\Documents\Unreal Projects\VR\Intermediate/Android/APK/bin/VR-debug.apk'. UATHelper: Packaging (Android (ATC)): UnrealBuildTool: File name: 'C:\Users\sdunf\Documents\Unreal Projects\VR\Intermediate/Android/APK/bin/VR-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 158.2788187s to run UnrealBuildTool.exe, ExitCode=5 UATHelper: Packaging (Android (ATC)): Program.Main: ERROR: AutomationTool terminated with exception: AutomationTool.CommandUtils+CommandFailedException: Command failed (Result:5): C:\Program Files\Epic Games\4.14\Engine\Binaries\DotNET\UnrealBuildTool.exe VR Android Development -Project="C:\Users\sdunf\Documents\Unreal Projects\VR\VR.uproject" "C:\Users\sdu nf\Documents\Unreal Projects\VR\VR.uproject" -remoteini="C:\Users\sdunf\Documents\Unreal Projects\VR" -noxge -NoHotReload -ignorejunk. See logfile for details: 'UnrealBuildTool-2016.11.12-22.42.08.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 PackagingResults:Error: Error Unknown Error

Product Version: UE 4.14 Preview
Tags:
androidsdk.png (88.2 kB)
more ▼

asked Nov 13 '16 at 06:54 AM in Packaging & Deployment

avatar image

Pugsleh
21 1 4 3

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Got it working, reinstalled the SDKs through the manager + blew away Project\Intermediate + repackaged.

more ▼

answered Nov 13 '16 at 07:01 PM

avatar image

Pugsleh
21 1 4 3

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
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