UE4安卓打包出错-Substance原因

时间:2023-01-28 09:33:29

今天在打包一个官网的Demo时遇到一个错误。

UATHelper: Packaging (Android (All)): Project.Build: ********** BUILD COMMAND STARTED **********
UATHelper: Packaging (Android (All)): CommandUtils.Run: Run: C:\Program Files (x86)\Epic Games\4.13\Engine\Binaries\DotNET\UnrealBuildTool.exe UE4Game Android Development   -remoteini="D:\UnrealProjects\StylizedRendering" -noxge -generatemanifest -NoHotReload
UATHelper: Packaging (Android (All)): UnrealBuildTool: NDK version: 21, GccVersion: 4.9
UATHelper: Packaging (Android (All)): UnrealBuildTool: building WITHOUT VULKAN define
UATHelper: Packaging (Android (All)): UnrealBuildTool: Vulkan SDK is installed, but the project disabled Vulkan (bSupportsVulkan setting in Engine). Disabling Vulkan RHI for Android
UATHelper: Packaging (Android (All)): UnrealBuildTool: ERROR: No modules found to build. All requested binaries were already part of the installed engine data.
UATHelper: Packaging (Android (All)): CommandUtils.Run: Run: Took 0.9017122s to run UnrealBuildTool.exe, ExitCode=5
UATHelper: Packaging (Android (All)): Program.Main: ERROR: AutomationTool terminated with exception: AutomationTool.CommandUtils+CommandFailedException: Command failed (Result:5): C:\Program Files (x86)\Epic Games\4.13\Engine\Binaries\DotNET\UnrealBuildTool.exe UE4Game Android Development   -r
UATHelper: Packaging (Android (All)): emoteini="D:\UnrealProjects\StylizedRendering" -noxge -generatemanifest -NoHotReload. See logfile for details: 'UnrealBuildTool-2016.09.09-15.49.18.txt' 
UATHelper: Packaging (Android (All)):    在 AutomationTool.CommandUtils.RunAndLog(String App, String CommandLine, String Logfile, Int32 MaxSuccessCode, String Input, ERunOptions Options, Dictionary`2 EnvVars, SpewFilterCallbackType SpewFilterCallback)
UATHelper: Packaging (Android (All)):    在 AutomationTool.CommandUtils.RunAndLog(CommandEnvironment Env, String App, String CommandLine, String LogName, Int32 MaxSuccessCode, String Input, ERunOptions Options, Dictionary`2 EnvVars, SpewFilterCallbackType SpewFilterCallback)
UATHelper: Packaging (Android (All)):    在 AutomationTool.CommandUtils.RunUBT(CommandEnvironment Env, String UBTExecutable, String CommandLine, String LogName, Dictionary`2 EnvVars)
UATHelper: Packaging (Android (All)):    在 AutomationTool.CommandUtils.RunUBT(CommandEnvironment Env, String UBTExecutable, FileReference Project, String Target, String Platform, String Config, String AdditionalArgs, String LogName, Dictionary`2 EnvVars)
UATHelper: Packaging (Android (All)):    在 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)
UATHelper: Packaging (Android (All)):    在 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)
UATHelper: Packaging (Android (All)):    在 Project.Build(BuildCommand Command, ProjectParams Params, Int32 WorkingCL, ProjectBuildTargets TargetMask)
UATHelper: Packaging (Android (All)):    在 BuildCookRun.DoBuildCookRun(ProjectParams Params)
UATHelper: Packaging (Android (All)):    在 AutomationTool.BuildCommand.Execute()
UATHelper: Packaging (Android (All)):    在 AutomationTool.Automation.Execute(List`1 CommandsToExecute, CaselessDictionary`1 Commands)
UATHelper: Packaging (Android (All)):    在 AutomationTool.Automation.Process(String[] Arguments)
UATHelper: Packaging (Android (All)):    在 AutomationTool.Program.MainProc(Object Param)
UATHelper: Packaging (Android (All)):    在 AutomationTool.InternalUtils.RunSingleInstance(Func`2 Main, Object Param)
UATHelper: Packaging (Android (All)):    在 AutomationTool.Program.Main()
UATHelper: Packaging (Android (All)): Program.Main: AutomationTool exiting with ExitCode=5 (5)
UATHelper: Packaging (Android (All)): BUILD FAILED
PackagingResults:Error: Error Unknown Error

找了半天,原因是打开了Substance插件,将其关闭就可以正常打包!