Hello guys , I’ve been trying to fix this error for a week but with no result . I’ve tried everything I could find online about this problem but nothing helped anyway . Here is error
BuildCommand.Execute: ERROR: BUILD FAILED
MainFrameActions: Packaging (Android (All)): Program.Main: ERROR: AutomationTool terminated with exception:
MainFrameActions: Packaging (Android (All)): Program.Main: ERROR: Exception in System: The system cannot find the file specified
MainFrameActions: Packaging (Android (All)): Stacktrace: at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
MainFrameActions: Packaging (Android (All)): at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
MainFrameActions: Packaging (Android (All)): at
MainFrameActions: Packaging (Android (All)): UnrealBuildTool.Android.UEDeployAndroid.GetSdkApiLevel()
MainFrameActions: Packaging (Android (All)): at UnrealBuildTool.Android.UEDeployAndroid.GetAllBuildSettings(String BuildPath, Boolean bForDistribution, Boolean bMakeSeparateApks, Boolean bPackageDataInsideApk, Boolean bDisableVerifyOBBOnStartUp)
MainFrameActions: Packaging (Android (All)): at UnrealBuildTool.Android.UEDeployAndroid.MakeApk(String ProjectName, String ProjectDirectory, String OutputPath, String EngineDirectory, Boolean bForDistribution, String CookFlavor, Boolean bMakeSeparateApks, Boolean bIncrementalPackage, Boolean bDisallowPackagingDataInApk)
MainFrameActions: Packaging (Android (All)): at UnrealBuildTool.Android.UEDeployAndroid.PrepForUATPackageOrDeploy(String ProjectName, String ProjectDirectory, String ExecutablePath, String EngineDirectory, Boolean bForDistribution, String CookFlavor, Boolean bIsDataDeploy)
MainFrameActions: Packaging (Android (All)): at AndroidPlatform.Package(ProjectParams Params, DeploymentContext SC, Int32 WorkingCL)
MainFrameActions: Packaging (Android (All)): at Project.Package(ProjectParams Params, Int32 WorkingCL)
MainFrameActions: Packaging (Android (All)): at BuildCookRun.DoBuildCookRun(ProjectParams Params)
MainFrameActions: Packaging (Android (All)): at BuildCommand.Execute()
MainFrameActions: Packaging (Android (All)): at AutomationTool.Automation.Execute(List1 CommandsToExecute, CaselessDictionary
1 Commands)
MainFrameActions: Packaging (Android (All)): at AutomationTool.Automation.Process(String[] CommandLine)
MainFrameActions: Packaging (Android (All)): at AutomationTool.Program.MainProc(Object Param)
MainFrameActions: Packaging (Android (All)): at AutomationTool.InternalUtils.RunSingleInstance(MainProc Main, Object Param)
MainFrameActions: Packaging (Android (All)): at AutomationTool.Program.Main()
MainFrameActions: Packaging (Android (All)): Program.Main: ERROR: The system cannot find the file specified
MainFrameActions: Packaging (Android (All)): ProcessManager.KillAll: Trying to kill 0 spawned processes.
MainFrameActions: Packaging (Android (All)): Program.Main: AutomationTool exiting with ExitCode=1
MainFrameActions: Packaging (Android (All)): Domain_ProcessExit
MainFrameActions: Packaging (Android (All)): ProcessManager.KillAll: Trying to kill 0 spawned processes.
MainFrameActions: Packaging (Android (All)): copying UAT log files…
MainFrameActions: Packaging (Android (All)): RunUAT.bat ERROR: AutomationTool was unable to run successfully.
MainFrameActions: Packaging (Android (All)): BUILD FAILED