Android Build Failed "Can't find ..\..\[Project]-debug.apk"

Hi guys. I know there are many questions like this one, but I don’t get why the build fails. I had problems with the android-ndk, then I had other issues with apache-ant. I fixed everything thanks to the other people in the community, but now I get an error that I can’t find in the ANSWERHUB

These are my settings:

Here is the log:

LogPlayLevel: UnrealBuildTool: ====12.6.2016 �. 10:00:10====PERFORMING FINAL APK PACKAGE OPERATION================================================
LogPlayLevel: UnrealBuildTool: Making .apk with Ant... (note: it's safe to ignore javac obsolete warnings)
LogPlayLevel: UnrealBuildTool: Buildfile: build.xml does not exist!
LogPlayLevel: UnrealBuildTool: Build failed
LogPlayLevel: UnrealBuildTool: Making .apk with Ant again to show errors
LogPlayLevel: UnrealBuildTool: Buildfile: build.xml does not exist!
LogPlayLevel: UnrealBuildTool: Build failed
LogPlayLevel: UnrealBuildTool: UnrealBuildTool Exception: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\Denis\Documents\Unreal\Furry\Intermediate/Android/APK/bin/Furry-debug.apk'.
LogPlayLevel: UnrealBuildTool:    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
LogPlayLevel: UnrealBuildTool:    at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite, Boolean checkHost)
LogPlayLevel: 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)
LogPlayLevel: UnrealBuildTool:    at UnrealBuildTool.UEDeployAndroid.PrepTargetForDeployment(UEBuildTarget InTarget)
LogPlayLevel: UnrealBuildTool:    at UnrealBuildTool.UnrealBuildTool.DoPostStartupStuffThatCanAccessConfigs(String[] Arguments)
LogPlayLevel: CommandUtils.Run: Run: Took 90.8136032s to run UnrealBuildTool.exe, ExitCode=5
LogPlayLevel: Program.Main: ERROR: AutomationTool terminated with exception: AutomationTool.AutomationException: Command failed (Result:5): C:\Program Files (x86)\Epic Games\4.12\Engine\Binaries\DotNET\UnrealBuildTool.exe Furry Android Development -Project=C:\Users\Denis\Documents\Unreal\Furry\Furry.uproject  C:\Users\Denis\Documents\Unreal\Furry\Furry.uproj
ect  -remoteini="C:\Users\Denis\Documents\Unreal\Furry" -noxge -NoHotReloadFromIDE -ignorejunk. See logfile for details: 'UnrealBuildTool-2016.06.12-09.58.40.txt'
LogPlayLevel:    at AutomationTool.CommandUtils.RunAndLog(String App, String CommandLine, String Logfile, Int32 MaxSuccessCode, String Input, ERunOptions Options, Dictionary`2 EnvVars)
LogPlayLevel:    at AutomationTool.CommandUtils.RunUBT(CommandEnvironment Env, String UBTExecutable, String CommandLine, String LogName, Dictionary`2 EnvVars)
LogPlayLevel:    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)
LogPlayLevel:    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, Dictionary`2 InTargetToManifest)
LogPlayLevel:    at Project.Build(BuildCommand Command, ProjectParams Params, Int32 WorkingCL, ProjectBuildTargets TargetMask)
LogPlayLevel:    at BuildCookRun.DoBuildCookRun(ProjectParams Params)
LogPlayLevel:    at AutomationTool.BuildCommand.Execute()
LogPlayLevel:    at AutomationTool.Automation.Execute(List`1 CommandsToExecute, CaselessDictionary`1 Commands)
LogPlayLevel:    at AutomationTool.Automation.Process(String[] CommandLine)
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=5 (5)
LogPlayLevel: Domain_ProcessExit
LogPlayLevel: copying UAT log files...
LogPlayLevel: Completed Launch On Stage: Build Task, Time: 92.314138
LogPlayLevel: BUILD FAILED

Ok guys, I found what the problem was. The .apk couldn’t be found because it wasn’t created. The reason it wasn’t created was because I am trying to build with target android-19 and I forgot to install the SDK Platform for API-19 through the Android SDK Manager. Now everything is ok. My app is crashing, but I tried it with the platformer template, and it’s working like e charm.

I have the same issue with UE unable to find debug.APK. So when I pull up Android SDK Manager I click on API-19 and then I get the message that it cant install. Done.Nothing was installed is the message. Would you have any idea why is that happening? Thank you.

My log is similar to your:
LOG FILE: MapCheck: Info Map check complete: 0 Error(s), 0 Warning(s), took 69.086ms to complete. UATHelper: Packaging (Android (ASTC)): UnrealBuildTool: Running UnrealHeaderTool “C:\Users\wispr\Documents\Unreal Projects\GAMA 4.15\Gama.uproject” “C:\Users\wispr\Documents\Unreal Projects\GAMA 4.15\Intermediate\Build\Android\Gama\Development\Gama.uhtmanifest” -LogCmds=“loginit warning, logexit warning, logdatabase error” -Un attended -WarningsAsErrors -installed UATHelper: Packaging (Android (ASTC)): UnrealBuildTool: C:\NVPACK\android-sdk-windows\tools\ant\build.xml:649: The following error occurred while executing this line: UATHelper: Packaging (Android (ASTC)): UnrealBuildTool: ERROR: System.IO.FileNotFoundException: >>>>[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[Could not find file ‘C:\Users\wispr\Documents\Unreal Projects\GAMA 4.15\Intermediate/Android/APK/bin/Gama-debug.apk’.]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]<<<< UATHelper: Packaging (Android (ASTC)): UnrealBuildTool: at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) UATHelper: Packaging (Android (ASTC)): Program.Main: ERROR: AutomationTool terminated with exception: AutomationTool.CommandUtils+CommandFailedException: Command failed (Result:5): C:\Program Files\Epic Games\UE_4.15\Engine\Binaries\DotNET\UnrealBuildTool.exe Android Development -Project="C:\Users\wispr\Documents\Unreal Projects\GAMA 4.15\Ga PackagingResults:Error: Error Unknown Error

BUT I DID WHAT YOU DID BUT WHEN I TRY TO INSTALL THE API-19 I GET THESE MESSAGE:
DONE.NOTHING WAS INSTALLED. Would you know what went wrong? Thank’s.

Try running the SDK Manager as administrator. Sometimes you can’t install packages if not run as admin.

Sometimes if you have the correct SDK version but appear this Error, please check if your SDK needs updating .)