已解决
我的打包情况是:
UE5.0.3中 平台–>打包–>Linux–>打包项目(使用项目配置)
失败,显示问题:
UATHelper: 打包 (Linux): ERROR: Missing precompiled manifest for 'BlueprintJson', 'E:\UE5\UE_5.0\Engine\Plugins\Marketplace\BlueprintJson\Intermediate\Build\Linux\B4D820EA\UnrealGame\Development\BlueprintJson\BlueprintJson.precompiled'. This module was most likely not flagged for being included in a precompiled build - set 'PrecompileForTargets = PrecompileTargetsType.Any;' in BlueprintJson.build.cs to override. If part of a plugin, also check if its 'Type' is correct.
PackagingResults: Error: Missing precompiled manifest for 'BlueprintJson', 'E:\UE5\UE_5.0\Engine\Plugins\Marketplace\BlueprintJson\Intermediate\Build\Linux\B4D820EA\UnrealGame\Development\BlueprintJson\BlueprintJson.precompiled'. This module was most likely not flagged for being included in a precompiled build - set 'PrecompileForTargets = PrecompileTargetsType.Any;' in BlueprintJson.build.cs to override. If part of a plugin, also check if its 'Type' is correct.
UATHelper: 打包 (Linux): Took 0.9956644s to run UnrealBuildTool.exe, ExitCode=6
UATHelper: 打包 (Linux): UnrealBuildTool failed. See log for more details. (C:\Users\18561\AppData\Roaming\Unreal Engine\AutomationTool\Logs\E+UE5+UE_5.0\UBT-SDK-Linux-Development.txt)
UATHelper: 打包 (Linux): AutomationTool executed for 0h 0m 2s
UATHelper: 打包 (Linux): AutomationTool exiting with ExitCode=6 (6)
UATHelper: 打包 (Linux): BUILD FAILED
PackagingResults: Error: Unknown Error
一.
可以先根据这个办法试一试,我没有解决,因为找到那个文件打开后没有下面这行。
PrecompileForTargets = PrecompileTargetsType.Any
二.
换另一种办法,把引擎目录下的插件复制到项目下。我一开始是按照官方论坛里一个视频分享的方法改的,但没有效果,才用了接下来的办法。有同样问题可以先试试他的。
1.
根据报错信息,找到路径,在引擎目录下,而不是项目目录
2.
直接把项目文件夹复制,粘贴到项目文件路径下,如图。
注意!这个地方如果没有Plugins文件夹,自己建一个。复制之后把源文件夹里的删除,否则会报错
PackagingResults: Error: System.ArgumentException: An item with the same key has already been added.
3.
按照上述处理完一个插件之后,刷新平台状态进行打包,我所有的插件都出了这个问题因此全都复制过去了,完成之后重启项目,检查确定设置里的插件是正常的,接着平台–>刷新平台状态,最后打包成功!