Could not be compiled. Try rebuilding from source manually

Thanks, it worked!

I had a similar situation on Mac OS, I resolved it by doing the following steps:

  • Delete the Intermediate directory of my project.
  • Right click on the uproject, click on Services then Generate XCode Project.

This will create the XCode project, you can then open it and build the project or re-launch Unreal Engine and open the project, it will ask you to build, click yes and it will build the project for you.

2 Likes

Updating Visual Studio fixed this for me.

Using Visual Studio 2017 and Unreal 4.22.1 I got this error.

What fixed it for me was to go into my project folder using Windows Explorer and right click on the Myprojecct.uproject file and tell it “Generate Visual Studio Project Files”

Thanks, this saved me :slight_smile:

Aha This still works. Edited the header files to enable multiplayer and crapped one when it wouldn’t open anymore. This saved my ■■■, Thanks!

that’s great worked for me too!

What the heck?
This still was the thing that worked best after an hour of trying to fix it with other methods!
Good stuff dude

Just delete folders:
.vs
Binaries
DerivedDataCache
Intermediate
Saved
and .sln file. Then launch UE project file, try to rebuild. If you get an error, right click on UE project file and generate VS project files. After that, try to launch project again.

I started getting this error today when moving to a different PC. There are a lot of complicated solutions out there, but it may be something super simple.

For me my visual studio did not have the C++ for games package installed, so Unreal and Visual Studio were not able to communicate which instantly shut down the attempt.

Try going into your Visual Studio and checking to see if you have C++ for games. It potentially can be easily fixed by simply installing that package.