BuildCommand.Execute: ERROR: BUILD FAILED
MainFrameActions: Packaging (Android (Multi:ASTC,ATC,PVRTC,DXT,ETC2,ETC1)): Program.Main: ERROR: AutomationTool terminated with exception:
MainFrameActions: Packaging (Android (Multi:ASTC,ATC,PVRTC,DXT,ETC2,ETC1)): Program.Main: ERROR: Exception in AutomationScripts.Automation: Cook failed.
MainFrameActions: Packaging (Android (Multi:ASTC,ATC,PVRTC,DXT,ETC2,ETC1)): Stacktrace: at Project.Cook(ProjectParams Params)
MainFrameActions: Packaging (Android (Multi:ASTC,ATC,PVRTC,DXT,ETC2,ETC1)): at BuildCookRun.DoBuildCookRun(ProjectParams Params)
MainFrameActions: Packaging (Android (Multi:ASTC,ATC,PVRTC,DXT,ETC2,ETC1)): at BuildCommand.Execute()
MainFrameActions: Packaging (Android (Multi:ASTC,ATC,PVRTC,DXT,ETC2,ETC1)): at AutomationTool.Automation.Execute(List`1 CommandsToExecute, CaselessDictionary`1 Commands)
MainFrameActions: Packaging (Android (Multi:ASTC,ATC,PVRTC,DXT,ETC2,ETC1)): at AutomationTool.Automation.Process(String[] CommandLine)
MainFrameActions: Packaging (Android (Multi:ASTC,ATC,PVRTC,DXT,ETC2,ETC1)): at AutomationTool.Program.MainProc(Object Param)
MainFrameActions: Packaging (Android (Multi:ASTC,ATC,PVRTC,DXT,ETC2,ETC1)): at AutomationTool.InternalUtils.RunSingleInstance(Action`1 Main, Object Param)
MainFrameActions: Packaging (Android (Multi:ASTC,ATC,PVRTC,DXT,ETC2,ETC1)): at AutomationTool.Program.Main()InnerException in AutomationUtils.Automation: BUILD FAILED: Failed while running Cook for D:\workspace\unreal_project\HuaiKX\HuaiKX.uproject; see log C:\Users\Neil Wong\AppData\Roaming\Unreal Engine\AutomationTool\Logs\D+Program_Filesx86+Epic+Games+4.10\Cook-2015.12.28-16.04.51.txt
MainFrameActions: Packaging (Android (Multi:ASTC,ATC,PVRTC,DXT,ETC2,ETC1)): Stacktrace: at AutomationTool.CommandUtils.RunCommandlet(String ProjectName, String UE4Exe, String Commandlet, String Parameters)
MainFrameActions: Packaging (Android (Multi:ASTC,ATC,PVRTC,DXT,ETC2,ETC1)): at Project.Cook(ProjectParams Params)
安卓打包部署时,出现这个错误,多半是蓝图中引用错误,比如引用的材质路径不存在了,或者引用的蓝图函数被删了。打包前确保每个蓝图都能正常编译且无警告。另外建议勾选 Packaging Settings中的Full Rebuild,保证每次构建时都清理一次全部重编