Can't package project (Unknown Error)

Hello everyone,

I’m currently working on a project. I could package the project before. After adding a new feature to the project, I can not package the project anymore, but I can compile the project.

Note: I’m developing the project with both C++ and BP.

Here is the error:

UATHelper: Packaging (Windows (64-bit)): Running AutomationTool...
UATHelper: Packaging (Windows (64-bit)): Automation.ParseCommandLine: Parsing command line: -ScriptsForProject="/////.uproject" BuildCookRun -nocompile -nocompileeditor -installed -nop4 -project="/////.uproject" -cook -stage -archive -archi
vedirectory=///// -package -clientconfig=Shipping -ue4exe=UE4Editor-Cmd.exe -pak -prereqs -nodebuginfo -targetplatform=Win64 -build -CrashReporter -utf8output
UATHelper: Packaging (Windows (64-bit)): Automation.Process: Setting up command environment.
UATHelper: Packaging (Windows (64-bit)): BuildCookRun.SetupParams: Setting up ProjectParams for /////.uproject
UATHelper: Packaging (Windows (64-bit)): Project.Build: ********** BUILD COMMAND STARTED **********
UATHelper: Packaging (Windows (64-bit)): CommandUtils.Run: Run: C:\Program Files (x86)\Epic Games\4.14\Engine\Binaries\DotNET\UnrealBuildTool.exe /////(ProjectName) Win64 Shipping -Project="/////.uproject"  "/////.uproject"  -remoteini="/////(ProjectName)" -noxge -generatemanifest -NoHotReload
UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: ERROR: Non-editor build cannot depend on non-redistributable modules. /////-Win64-Shipping.exe depends on 'EditorStyle', 'EditorWidgets', 'Settings', 'SourceCodeAccess', 'SourceControl', 'SourceControlWindows', 'WorkspaceMenuSt
ructure', 'DirectoryWatcher', 'DesktopPlatform', 'SuperSearch', 'AddContentDialog', 'CollectionManager', 'ClassViewer', 'TargetPlatform', 'HardwareTargeting', 'CrashTracker', 'MessageLog', 'UATHelper', 'Merge', 'BlueprintGraph', 'KismetWidgets', 'ExternalImagePicker', 'SharedSettingsWidgets', 'DerivedDataCache', 'HotReload', 'ActorPickerMode', 'StatsViewer',
 'DeviceProfileServices', 'SceneOutliner', 'SkeletonEditor', 'AnimationEditor', 'Persona', 'MovieSceneCaptureDialog', 'SequencerWidgets', 'SequenceRecorderSections', 'Sequencer', 'RawMesh', 'MaterialUtilities', 'MeshBoneReduction', 'AnimationBlueprintEditor', 'SceneDepthPickerMode', 'SkeletalMeshEditor', 'QuadricMeshReduction', 'MeshUtilities', 'Hierarchical
LODUtilities', 'HierarchicalLODOutliner', 'PixelInspectorModule', 'FunctionalTesting', 'DeviceManager', 'SettingsEditor', 'UnrealEdMessages', 'AutomationController', 'AutomationWindow', 'ScreenShotComparisonTools', 'DesktopWidgets', 'ScreenShotComparison', 'ProfilerMessages', 'ProfilerClient', 'Profiler', 'SessionFrontend', 'SlateReflector', 'Layers', 'Viewp
ortInteraction', 'VREditor', 'LandscapeEditor', 'WorldBrowser', 'NewLevelDialog', 'DeviceProfileEditor', 'PlacementMode', 'UserFeedback', 'TreeMap', 'SizeMap', 'ReferenceViewer', 'LauncherServices', 'IntroTutorials', 'LevelEditor', 'SequenceRecorder', 'MovieSceneTools', 'KismetCompiler', 'BlueprintCompilerCppBackend', 'BlueprintNativeCodeGen', 'BlueprintProf
iler', 'Kismet', 'GraphEditor', 'Localization', 'LocalizationService', 'TranslationEditor', 'UndoHistory', 'ProjectTargetPlatformEditor', 'OutputLog', 'EditorLiveStreaming', 'LocalizationDashboard', 'MainFrame', 'GameProjectGeneration', 'ContentBrowser', 'Documentation', 'ConfigEditor', 'PropertyEditor', 'AnimGraph', 'InputBindingEditor', 'MaterialEditor', '
SoundClassEditor', 'SoundCueEditor', 'SwarmInterface', 'TargetDeviceServices', 'InternationalizationSettings', 'MeshPaint', 'PluginWarden', 'BspMode', 'GameplayDebugger', 'FontEditor', 'StaticMeshEditor', 'TextureEditor', 'DistCurveEditor', 'Cascade', 'Matinee', 'CurveTableEditor', 'DataTableEditor', 'DestructibleMeshEditor', 'EditorSettingsViewer', 'Compone
ntVisualizers', 'DetailCustomizations', 'PackagesDialog', 'PhAT', 'ProjectLauncher', 'GeometryMode', 'TextureAlignMode', 'FoliageEdit', 'PackageDependencyInfo', 'Blutility', 'NiagaraEditor', 'MergeActors', 'ProjectSettingsViewer', 'PListEditor', 'AIGraph', 'BehaviorTreeEditor', 'EnvironmentQueryEditor', 'ViewportSnapping', 'GameplayTagsEditor', 'GameplayTask
sEditor', 'GameplayAbilitiesEditor', 'IOSPlatformEditor', 'HTML5TargetPlatform', 'HTML5PlatformEditor', 'GeometryCacheEd', 'AndroidDeviceDetection', 'AndroidPlatformEditor', 'UnrealEd', 'CurveAssetEditor', 'AssetTools', 'UMGEditor'.
UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: Dependant modules 'EditorWidgets', 'SourceCodeAccess', 'SourceControl', 'SourceControlWindows', 'WorkspaceMenuStructure', 'AddContentDialog', 'CollectionManager', 'ClassViewer', 'TargetPlatform', 'HardwareTargeting', 'MessageLog', 'UATHelper', 'Merge', 'BlueprintGraph', 'KismetWidgets', 'ExternalImage
Picker', 'SharedSettingsWidgets', 'HotReload', 'ActorPickerMode', 'StatsViewer', 'DeviceProfileServices', 'SceneOutliner', 'SkeletonEditor', 'AnimationEditor', 'Persona', 'MovieSceneCaptureDialog', 'SequencerWidgets', 'SequenceRecorderSections', 'Sequencer', 'MaterialUtilities', 'AnimationBlueprintEditor', 'SceneDepthPickerMode', 'SkeletalMeshEditor', 'Quadr
icMeshReduction', 'MeshUtilities', 'HierarchicalLODUtilities', 'HierarchicalLODOutliner', 'PixelInspectorModule', 'FunctionalTesting', 'DeviceManager', 'SettingsEditor', 'AutomationController', 'AutomationWindow', 'ScreenShotComparisonTools', 'DesktopWidgets', 'ScreenShotComparison', 'ProfilerClient', 'Profiler', 'SessionFrontend', 'Layers', 'ViewportInterac
tion', 'VREditor', 'LandscapeEditor', 'WorldBrowser', 'NewLevelDialog', 'DeviceProfileEditor', 'PlacementMode', 'UserFeedback', 'SizeMap', 'ReferenceViewer', 'LauncherServices', 'IntroTutorials', 'LevelEditor', 'SequenceRecorder', 'MovieSceneTools', 'KismetCompiler', 'BlueprintCompilerCppBackend', 'BlueprintNativeCodeGen', 'Kismet', 'GraphEditor', 'Localizat
ion', 'LocalizationService', 'TranslationEditor', 'UndoHistory', 'ProjectTargetPlatformEditor', 'OutputLog', 'EditorLiveStreaming', 'LocalizationDashboard', 'MainFrame', 'GameProjectGeneration', 'ContentBrowser', 'Documentation', 'ConfigEditor', 'PropertyEditor', 'AnimGraph', 'InputBindingEditor', 'MaterialEditor', 'NetworkFileSystem', 'SoundClassEditor', 'S
oundCueEditor', 'TargetDeviceServices', 'InternationalizationSettings', 'MeshPaint', 'PluginWarden', 'BspMode', 'FontEditor', 'StaticMeshEditor', 'TextureEditor', 'DistCurveEditor', 'Cascade', 'Matinee', 'CurveTableEditor', 'DataTableEditor', 'DestructibleMeshEditor', 'EditorSettingsViewer', 'ComponentVisualizers', 'DetailCustomizations', 'PackagesDialog', '
PhAT', 'ProjectLauncher', 'GeometryMode', 'TextureAlignMode', 'FoliageEdit', 'Blutility', 'NiagaraEditor', 'MergeActors', 'ProjectSettingsViewer', 'PListEditor', 'AIGraph', 'BehaviorTreeEditor', 'EnvironmentQueryEditor', 'ViewportSnapping', 'GameplayTagsEditor', 'GameplayTasksEditor', 'GameplayAbilitiesEditor', 'IOSPlatformEditor', 'HTML5TargetPlatform', 'HT
ML5PlatformEditor', 'GeometryCacheEd', 'AndroidPlatformEditor', 'UnrealEd', 'CurveAssetEditor', 'AssetTools', 'UMGEditor', '/////(ProjectName)'
UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: ERROR: Non-editor build cannot depend on non-redistributable modules.
UATHelper: Packaging (Windows (64-bit)): CommandUtils.Run: Run: Took 3.9306049s to run UnrealBuildTool.exe, ExitCode=5
UATHelper: Packaging (Windows (64-bit)): Program.Main: ERROR: AutomationTool terminated with exception: AutomationTool.CommandUtils+CommandFailedException: Command failed (Result:5): C:\Program Files (x86)\Epic Games\4.14\Engine\Binaries\DotNET\UnrealBuildTool.exe /////(ProjectName) Win64 Shipping -Project="/////.uproject"  "/////.uproject"  -remoteini="/////" -noxge -generatemanifest -NoHotReload. See logfile for details: 'UnrealBuildTool-2017.08.07-19.01.03.txt' 
UATHelper: Packaging (Windows (64-bit)):    at AutomationTool.CommandUtils.RunAndLog(String App, String CommandLine, String Logfile, Int32 MaxSuccessCode, String Input, ERunOptions Options, Dictionary`2 EnvVars, SpewFilterCallbackType SpewFilterCallback)
UATHelper: Packaging (Windows (64-bit)):    at AutomationTool.CommandUtils.RunAndLog(CommandEnvironment Env, String App, String CommandLine, String LogName, Int32 MaxSuccessCode, String Input, ERunOptions Options, Dictionary`2 EnvVars, SpewFilterCallbackType SpewFilterCallback)
UATHelper: Packaging (Windows (64-bit)):    at AutomationTool.CommandUtils.RunUBT(CommandEnvironment Env, String UBTExecutable, String CommandLine, String LogName, Dictionary`2 EnvVars)
UATHelper: Packaging (Windows (64-bit)):    at AutomationTool.CommandUtils.RunUBT(CommandEnvironment Env, String UBTExecutable, FileReference Project, String Target, String Platform, String Config, String AdditionalArgs, String LogName, Dictionary`2 EnvVars)
UATHelper: Packaging (Windows (64-bit)):    at 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 (Windows (64-bit)):    at 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, Dictio
nary`2 InTargetToManifest)
UATHelper: Packaging (Windows (64-bit)):    at Project.Build(BuildCommand Command, ProjectParams Params, Int32 WorkingCL, ProjectBuildTargets TargetMask)
UATHelper: Packaging (Windows (64-bit)):    at BuildCookRun.DoBuildCookRun(ProjectParams Params)
UATHelper: Packaging (Windows (64-bit)):    at BuildCookRun.ExecuteBuild()
UATHelper: Packaging (Windows (64-bit)):    at AutomationTool.BuildCommand.Execute()
UATHelper: Packaging (Windows (64-bit)):    at AutomationTool.Automation.Execute(List`1 CommandsToExecute, CaselessDictionary`1 Commands)
UATHelper: Packaging (Windows (64-bit)):    at AutomationTool.Automation.Process(String[] Arguments)
UATHelper: Packaging (Windows (64-bit)):    at AutomationTool.Program.MainProc(Object Param)
UATHelper: Packaging (Windows (64-bit)):    at AutomationTool.InternalUtils.RunSingleInstance(Func`2 Main, Object Param)
UATHelper: Packaging (Windows (64-bit)):    at AutomationTool.Program.Main()
UATHelper: Packaging (Windows (64-bit)): Program.Main: AutomationTool exiting with ExitCode=5 (5)
UATHelper: Packaging (Windows (64-bit)): BUILD FAILED
PackagingResults:Error: Error Unknown Error