AirtestProject / Poco-SDK

https://github.com/AirtestProject/Poco
Apache License 2.0
284 stars 167 forks source link

UE4 打包错误 打包 (Android (ETC2)): ERROR: System.ArgumentException: 已添加了具有相同键的项。 #82

Closed BUHEPIJIU closed 3 years ago

BUHEPIJIU commented 3 years ago

LogWindows: LaunchURL https://www.pico-interactive.com/ LogSlate: Window '插件' being destroyed LogSlate: Window '插件' being destroyed LogDirectoryWatcher: A directory notification for '../../../Engine/Plugins/' was aborted. LogDirectoryWatcher: A directory notification for '../../../../../../UE4_Program/Party_PICO/Plugins/' was aborted. LogSlate: Took 0.000261 seconds to synchronously load lazily loaded font '../../../Engine/Content/Slate/Fonts/Roboto-Light.ttf' (167K) LogAssetEditorSubsystem: Opening Asset editor for Blueprint /Game/BP/VR_Character.VR_Character LogContentBrowser: Native class hierarchy updated for 'BlueprintGraph' in 0.0009 seconds. Added 125 classes and 0 folders. LogSlate: Took 0.000299 seconds to synchronously load lazily loaded font '../../../Engine/Content/Slate/Fonts/Roboto-BoldCondensed.ttf' (158K) LogSlate: Took 0.000288 seconds to synchronously load lazily loaded font '../../../Engine/Content/Slate/Fonts/Roboto-Italic.ttf' (157K) LogSlate: Window '输出日志' being destroyed LogSlate: Window '输出日志' being destroyed LogSlate: Window 'VR_Character' being destroyed LogSlate: Window 'VR_Character' being destroyed LogWorld: UWorld::CleanupWorld for World_2, bSessionEnded=true, bCleanupResources=true LogSlate: InvalidateAllWidgets triggered. All widgets were invalidated LogUObjectHash: Compacting FUObjectHashTables data took 2.06ms LogMainFrame: Project does not require temp target LogLauncherProfile: Found promoted target with matching version at ../../../Engine/Binaries/Android/UE4Game.target UATHelper: 打包 (Android (ASTC)): Running AutomationTool... UATHelper: 打包 (Android (ASTC)): Parsing command line: -ScriptsForProject=d:/UE4_Program/Party_PICO/Party_PICO.uproject BuildCookRun -nocompileeditor -installed -nop4 -project=d:/UE4_Program/Party_PICO/Party_PICO.uproject -cook -stage -archive -archivedirectory=D:/DangJian_Pico -package -ue4exe="d:\Program Files\Epic Games\UE_4.25\Engine\Binaries\Win64\UE4Edi tor-Cmd.exe" -pak -prereqs -nodebuginfo -targetplatform=Android -cookflavor=ASTC -clientconfig=Development -utf8output UATHelper: 打包 (Android (ASTC)): Setting up ProjectParams for d:\UE4_Program\Party_PICO\Party_PICO.uproject UATHelper: 打包 (Android (ASTC)): ERROR: System.ArgumentException: 已添加了具有相同键的项。 UATHelper: 打包 (Android (ASTC)): 在 System.ThrowHelper.ThrowArgumentException(ExceptionResource resource) UATHelper: 打包 (Android (ASTC)): 在 System.Collections.Generic.Dictionary2.Insert(TKey key, TValue value, Boolean add) UATHelper: 打包 (Android (ASTC)): 在 System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable1 source, Func2 keySelector, Func2 elementSelector, IEqualityComparer1 comparer) UATHelper: 打包 (Android (ASTC)): 在 AutomationTool.ProjectUtils.RequiresTempTarget(FileReference RawProjectPath, Boolean bProjectHasCode, UnrealTargetPlatform Platform, UnrealTargetConfiguration Configuration, TargetType TargetType, Boolean bRequiresAssetNativization, Boolean bRequiresCookedData, String& OutReason) 位置 D:\Build\++UE4\Sync\Engine\Sourc e\Programs\AutomationTool\AutomationUtils\ProjectUtils.cs:行号 208 UATHelper: 打包 (Android (ASTC)): 在 AutomationTool.ProjectUtils.RequiresTempTarget(FileReference RawProjectPath, List1 Platforms, List1 Configurations, Boolean AssetNativizationRequested) 位置 D:\Build\++UE4\Sync\Engine\Source\Programs\AutomationTool\AutomationUtils\ProjectUtils.cs:行号 155 UATHelper: 打包 (Android (ASTC)): 在 AutomationTool.ProjectUtils.DetectProjectProperties(FileReference RawProjectPath, List1 ClientTargetPlatforms, List1 ClientTargetConfigurations, Boolean AssetNativizationRequested) 位置 D:\Build\++UE4\Sync\Engine\Source\Programs\AutomationTool\AutomationUtils\ProjectUtils.cs:行号 533 UATHelper: 打包 (Android (ASTC)): 在 AutomationTool.ProjectUtils.GetProjectProperties(FileReference RawProjectPath, List1 ClientTargetPlatforms, List1 ClientTargetConfigurations, Boolean AssetNativizationRequested) 位置 D:\Build\++UE4\Sync\Engine\Source\Programs\AutomationTool\AutomationUtils\ProjectUtils.cs:行号 99 UATHelper: 打包 (Android (ASTC)): 在 AutomationTool.ProjectParams.AutodetectSettings(Boolean bReset) 位置 D:\Build\++UE4\Sync\Engine\Source\Programs\AutomationTool\AutomationUtils\ProjectParams.cs:行号 2010 UATHelper: 打包 (Android (ASTC)): 在 AutomationTool.ProjectParams..ctor(FileReference RawProjectPath, BuildCommand Command, String Device, String MapToRun, String AdditionalServerMapParams, ParamList1 Port, String RunCommandline, String StageCommandline, String BundleName, String StageDirectoryParam, String UE4Exe, String SignPak, List1 ClientConfig sToBuild, List1 ServerConfigsToBuild, ParamList1 MapsToCook, ParamList1 MapIniSectionsToCook, ParamList1 DirectoriesToCook, String InternationalizationPreset, ParamList1 CulturesToCook, ParamList1 ClientCookedTargets, ParamList1 EditorTargets, ParamList1 ServerCookedTargets, List1 ClientTargetPlatforms, Dictionary2 ClientDependentPlatformMap, List 1 ServerTargetPlatforms, Dictionary2 ServerDependentPlatformMap, Nullable1 Build, Nullable1 SkipBuildClient, Nullable1 SkipBuildEditor, Nullable1 Cook, Nullable1 Run, Nullable1 SkipServer, Nullable1 Clean, Nullable1 Compressed, String AdditionalPakOptions, Nullable1 IterativeCooking, String IterateSharedCookedBuild, Nullable1 IterateSharedBuildUse PrecompiledExe, Nullable1 CookAll, Nullable1 CookPartialGC, Nullable1 CookInEditor, String CookOutputDir, Nullable1 CookMapsOnly, Nullable1 CookOnTheFly, Nullable1 CookOnTheFlyStreaming, Nullable1 UnversionedCookedContent, Nullable1 EncryptIniFiles, Nullable1 EncryptPakIndex, Nullable1 EncryptEverything, Nullable1 SkipCookingEditorContent, Nullabl e1 NumCookersToSpawn, String AdditionalCookerOptions, String BasedOnReleaseVersion, String CreateReleaseVersion, String CreateReleaseVersionBasePath, String BasedOnReleaseVersionBasePath, Nullable1 GeneratePatch, Nullable1 AddPatchLevel, Nullable1 StageBaseReleasePaks, Nullable1 GenerateRemaster, String DiscVersion, String DLCName, String DiffCookedCont entPath, Nullable1 DLCIncludeEngineContent, Nullable1 DLCPakPluginFile, Nullable1 DLCActLikePatch, Nullable1 CrashReporter, Nullable1 DedicatedServer, Nullable1 Client, Nullable1 Deploy, String DeployFolder, String GetFile, Nullable1 FileServer, Nullable1 Foreign, Nullable1 ForeignCode, Nullable1 LogWindow, Nullable1 NoCleanStage, Nullable1 NoCl ient, Nullable1 NoDebugInfo, Nullable1 SeparateDebugInfo, Nullable1 MapFile, Nullable1 NoXGE, Nullable1 Package, Nullable1 Pak, Nullable1 IoStore, Nullable1 SkipIoStore, Nullable1 Prereqs, String AppLocalDirectory, Nullable1 NoBootstrapExe, Nullable1 SignedPak, Nullable1 PakAlignForMemoryMapping, Nullable1 NullRHI, Nullable1 FakeClient, Nullabl e1 EditorTest, Nullable1 RunAutomationTests, String RunAutomationTest, Nullable1 CrashIndex, Nullable1 SkipCook, Nullable1 SkipCookOnTheFly, Nullable1 SkipPak, Nullable1 PrePak, Nullable1 SkipStage, Nullable1 Stage, Nullable1 Manifests, Nullable1 CreateChunkInstall, Nullable1 Unattended, Nullable1 NumClients, Nullable1 Archive, String ArchiveDi rectoryParam, Nullable1 ArchiveMetaData, Nullable1 CreateAppBundle, String SpecifiedClientTarget, String SpecifiedServerTarget, ParamList1 ProgramTargets, Nullable1 Distribution, Nullable1 Prebuilt, Nullable1 RunTimeoutSeconds, String SpecifiedArchitecture, String UbtArgs, String AdditionalPackageOptions, Nullable1 IterativeDeploy, Nullable1 FastCook , Nullable1 IgnoreCookErrors, Nullable1 RunAssetNativization, Nullable1 CodeSign, Nullable1 TreatNonShippingBinariesAsDebugFiles, Nullable1 UseExtraFlavor, String Provision, String Certificate, String Team, Boolean AutomaticSigning, ParamList1 InMapsToRebuildLightMaps, ParamList1 InMapsToRebuildHLOD, ParamList1 TitleID) 位置 D:\Build++UE4\Sync\Engine\ Source\Programs\AutomationTool\AutomationUtils\ProjectParams.cs:行号 1072 UATHelper: 打包 (Android (ASTC)): 在 BuildCookRun.SetupParams() 位置 D:\Build++UE4\Sync\Engine\Source\Programs\AutomationTool\Scripts\BuildCookRun.Automation.cs:行号 46 UATHelper: 打包 (Android (ASTC)): 在 BuildCookRun.ExecuteBuild() 位置 D:\Build++UE4\Sync\Engine\Source\Programs\AutomationTool\Scripts\BuildCookRun.Automation.cs:行号 37 UATHelper: 打包 (Android (ASTC)): 在 AutomationTool.BuildCommand.Execute() 位置 D:\Build++UE4\Sync\Engine\Source\Programs\AutomationTool\AutomationUtils\BuildCommand.cs:行号 263 UATHelper: 打包 (Android (ASTC)): 在 AutomationTool.Automation.Execute(List1 CommandsToExecute, Dictionary2 Commands) 位置 D:\Build++UE4\Sync\Engine\Source\Programs\AutomationTool\AutomationUtils\Automation.cs:行号 547 UATHelper: 打包 (Android (ASTC)): 在 AutomationTool.Automation.Process(String[] Arguments, StartupTraceListener StartupListener) 位置 D:\Build++UE4\Sync\Engine\Source\Programs\AutomationTool\AutomationUtils\Automation.cs:行号 511 UATHelper: 打包 (Android (ASTC)): 在 AutomationTool.Program.MainProc(String[] Arguments, StartupTraceListener StartupListener) 位置 D:\Build++UE4\Sync\Engine\Source\Programs\AutomationTool\Program.cs:行号 176 UATHelper: 打包 (Android (ASTC)): 在 AutomationTool.Program.<>c__DisplayClass1_0.

b__2() 位置 D:\Build++UE4\Sync\Engine\Source\Programs\AutomationTool\Program.cs:行号 88 UATHelper: 打包 (Android (ASTC)): 在 AutomationTool.InternalUtils.RunSingleInstance(Func`1 Main) 位置 D:\Build++UE4\Sync\Engine\Source\Programs\AutomationTool\AutomationUtils\Utils.cs:行号 731 UATHelper: 打包 (Android (ASTC)): 在 AutomationTool.Program.Main(String[] Arguments) 位置 D:\Build++UE4\Sync\Engine\Source\Programs\AutomationTool\Program.cs:行号 88 UATHelper: 打包 (Android (ASTC)): (see C:\Users\Z\AppData\Roaming\Unreal Engine\AutomationTool\Logs\d+Program+Files+Epic+Games+UE_4.25\Log.txt for full exception trace) PackagingResults: Error: System.ArgumentException: 已添加了具有相同键的项。 UATHelper: 打包 (Android (ASTC)): AutomationTool exiting with ExitCode=1 (Error_Unknown) UATHelper: 打包 (Android (ASTC)): BUILD FAILED PackagingResults: Error: Unknown Error

BUHEPIJIU commented 3 years ago

找到问题根源,引擎版本过高...