UE 5.4.3 crashes after adding and compiling a new C++ class

I recently decided to familiarize myself with this engine and with C++. But I ran into problems. One of them I can’t solve. For some reason, even when I create a new project, create a new C++ class and write basic code from the documentation from the “quick start” section and start compiling in visual studio 2022, the compiler gives an error:
Error MSB3073 exit from “C:\pc\UnrealEngine\UE_5.4\Engine\Build\BatchFiles\Build.bat MyProjectEditor Win64 Development -Project=”C:\pc\UnrealProjects\MyProject\MyProject.uproject“ -WaitMutex -FromMsBuild -architecture=x64” with code 6. MyProject C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.MakeFile.Targets 44
When trying to compile in the engine, even with “live coding” turned off, it crashes with an error.

And when I try to run UE it says: The following modules are incorrect or built with a different version of the engine.
Then: The project cannot be compiled. Try to rebuild the project from source manually.
But my project is still running.

I have reinstalled UE 5 and Visual studio 2022 several times. All the necessary plugins and add-ons for visual studio and UE 5, including .net 6,7,8 and updated drivers and restarted the PC. All to no avail.
I don’t know if it will help, but just in case I will write the characteristics of the laptop:
RAM: 16 gb
RTX 4060 laptop
AMD ryzen 7 7735HS

I just started to study this engine, and now I have so many problems…

try to NOT use special letter for your both engine installation and project path , i saw “++” in your path above picture

It’s hardly about the path to the project. I have the engine in this path: C:/pc/UnrealEngine/UE_5.4. And the projects are in a slightly different place: C:/pc/UnrealProjects/ MyProject.
But it seems to be working fine now. I don’t know what I did. Maybe generating Visual studio files or something else helped. I just opened the project a few hours later, decided to generate files for the compiler and it seemed to work. But thanks for your help anyway.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.