I have a problem when trying to package my android project(no matter the packaging method/type). When it reaches that point I get the following error:
====23/08/2016 15:58:52====UPDATING BUILD CONFIGURATION FILES====================================================
UnrealBuildTool Exception: System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at UnrealBuildTool.UEDeployAndroid.RunCommandLineProgramAndThrowOnError(String WorkingDirectory, String Command, String Params, String OverrideDesc, Boolean bUseShellExecute)
at UnrealBuildTool.UEDeployAndroid.UpdateProjectProperties(AndroidToolChain ToolChain, String UE4BuildPath, String ProjectName)
at UnrealBuildTool.UEDeployAndroid.MakeApk(AndroidToolChain ToolChain, String ProjectName, String ProjectDirectory, String OutputPath, String EngineDirectory, Boolean bForDistribution, String CookFlavor, Boolean bMakeSeparateApks, Boolean bIncrementalPackage, Boolean bDisallowPackagingDataInApk)
at UnrealBuildTool.UEDeployAndroid.PrepTargetForDeployment(UEBuildTarget InTarget)
at UnrealBuildTool.UnrealBuildTool.DoPostStartupStuffThatCanAccessConfigs(String[] Arguments)
I will attach to this post how I have my environment variables set up and the android sdk section in my project settings.
As a note I did have android sdk/ndk installed via the Nvidia Codeworks installer that comes with UE4 but I couldn’t use that for some reason, removed all the files by deleting them, removed all the environmental variables that had a need of then installed the new sdk/ndk via Android Studio.