UE4打包报错Staged filesystem references cannot end with path separators

有一个一段时间没打开过的UE4项目,在打包时遇到错误,错误提示:

System.ArgumentException: Staged filesystem references cannot end with path separators.

Program.Main: AutomationTool exiting with ExitCode=1 (Error_Unknown)

后来查找定位到原因,再次做一下记录:

1、打开项目设置,进入打包设置

UE4打包报错Staged filesystem references cannot end with path separators

2、进入打包时固定复制目录添加这块,清理多余的或者不正确的路径:

UE4打包报错Staged filesystem references cannot end with path separators

3、重新打包,成功