When packaging my project, IOException error was occurred.
I am using UE 4.12.5. I tried to remove temporary folders, but failed.
My custom UE 4.12.5 and original UE 4.12.5 are same.
I am using MS Windows 10, MS Visual Studio 2015.
Please help me.
These error logs are.
UnrealBuildTool: ====8/31/2016 11:46:51 AM====PREPARING TO MAKE APK===============================================================
UnrealBuildTool: UnrealBuildTool Exception: System.IO.IOException: Cannot create a file when that file already exists.
UnrealBuildTool:
UnrealBuildTool: at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
UnrealBuildTool: at System.IO.File.InternalMove(String sourceFileName, String destFileName, Boolean checkHost)
UnrealBuildTool: at UnrealBuildTool.UEDeployAndroid.MakeApk(AndroidToolChain ToolChain, String ProjectName, String ProjectDirec
tory, String OutputPath, String EngineDirectory, Boolean bForDistribution, String CookFlavor, Boolean bMakeSeparateApks, Boolean b
IncrementalPackage, Boolean bDisallowPackagingDataInApk)
UnrealBuildTool: at UnrealBuildTool.UEDeployAndroid.PrepTargetForDeployment(UEBuildTarget InTarget)
UnrealBuildTool: at UnrealBuildTool.UnrealBuildTool.DoPostStartupStuffThatCanAccessConfigs(String[] Arguments)
CommandUtils.Run: Run: Took 0.9532009s to run UnrealBuildTool.exe, ExitCode=5
Program.Main: ERROR: AutomationTool terminated with exception: AutomationTool.AutomationException: Command failed (Result:5): C:\P
rogram Files (x86)\Epic Games\4.12\Engine\Binaries\DotNET\UnrealBuildTool.exe XXXX Android DebugGame -prepfordeploy -project="
XXXX.uproject" -NoHotReloadFromIDE -ignorejunk. See logfile for details: ‘UnrealBuildTool-2016.08.31-11.46.
50.txt’
at AutomationTool.CommandUtils.RunAndLog(String App, String CommandLine, String Logfile, Int32 MaxSuccessCode, String Input, ER
unOptions Options, Dictionary2 EnvVars) at AutomationTool.CommandUtils.RunUBT(CommandEnvironment Env, String UBTExecutable, String CommandLine, String LogName, Diction ary
2 EnvVars)
at AndroidPlatform.PostBuildTarget(UE4Build Build, FileReference UProjectPath, String TargetName, String Config)
at AutomationTool.UE4Build.BuildWithUBT(String TargetName, UnrealTargetPlatform TargetPlatform, String Config, FileReference Up
rojectPath, Boolean ForceMonolithic, Boolean ForceNonUnity, Boolean ForceDebugInfo, Boolean ForceFlushMac, Boolean DisableXGE, Str
ing InAddArgs, Boolean ForceUnity, Dictionary2 EnvVars) at AutomationTool.UE4Build.Build(BuildAgenda Agenda, Nullable
1 InDeleteBuildProducts, Boolean InUpdateVersionFiles, Boolean In
ForceNoXGE, Boolean InUseParallelExecutor, Boolean InForceNonUnity, Boolean InForceUnity, Boolean InShowProgress, Dictionary2 Pla tformEnvVars, Nullable
1 InChangelistNumberOverride, Dictionary2 InTargetToManifest) at Project.Build(BuildCommand Command, ProjectParams Params, Int32 WorkingCL, ProjectBuildTargets TargetMask) at BuildCookRun.DoBuildCookRun(ProjectParams Params) at AutomationTool.BuildCommand.Execute() at AutomationTool.Automation.Execute(List
1 CommandsToExecute, CaselessDictionary1 Commands) at AutomationTool.Automation.Process(String[] CommandLine) at AutomationTool.Program.MainProc(Object Param) at AutomationTool.InternalUtils.RunSingleInstance(Func
2 Main, Object Param)
at AutomationTool.Program.Main()
Program.Main: AutomationTool exiting with ExitCode=5 (5)
Domain_ProcessExit
copying UAT log files…
BUILD FAILED