An item with the same key has already been added

Hi everyone,

I know this question has been asked before, but I’m allowing myself to ask it again because no solution seems to work.

So, I have the error message displayed below. I have tried all the proposed solutions: deleting the Plugins/Intermediates/Saved/Config folders, searching for duplicate files, trying to find an identical .target… Nothing works. The only solution that worked once was to delete Unreal and reinstall it. If it works a second time, so much the better, but it takes a very long time… So, if anyone has a solution, thank you in advance!

Error message:

UnrealBuildTool: ERROR: AutomationToolException: UnrealBuildToolException: Failed to generate project files for target 'UE4Editor'.

Here are the things I have already tried:

  • Deleted the Plugins/Intermediates/Saved/Config folders.
  • Searched for duplicate files.
  • Tried to find an identical .target.
  • Deleted and reinstalled Unreal.

I am using:

  • Unreal Engine 4.27.2
  • Visual Studio 2019

Any help would be greatly appreciated!

Additional information:

  • I have attached the full error log to this post.
  • I have also tried searching for solutions on the Unreal Engine forums, but I have not been able to find anything that works.

Log.txt (23.4 KB)
Thank you for your time.

Did you ever figure this out? Same issue. I have tried everything