Add code to project error

When I add code to the project, the editor complaint that

Changes to generate code are not allowed - conflicts written to:
error code: FailedDueToHeaderChanged(1) 

How to fix it? Thanks!

Hello, Iti

To fix the issue, please check build configuration of the project in Visual Studio. Non-editor build version can cause the described behavior. (For example when “Development” is selected, try “Development Editor”). If you like to learn more about build configurations in Unreal Engine, please go here:

However, if the problem still occurs, please try the following:

  1. Delete “Intermediate” folder of your project.
  2. Regenerate solution and project files.

Hope this helped!
Cheers!