The "SetEnv" task failed unexpectedly

Hi,
That works for me too, thank you a lot!

Recently, I had this issue occuring without apparent cause on one device, when building from Github. The solution was as shown in@dorgon_chang’s screenshots. Thanks everyone for helping me troubleshoot this :sweat_smile:

this​:+1:

It also works for me. Thank you

you are my god

Has anyone considered increasing that number, 49152? Maybe doubling it?

Been banging my head against the wall for a few hours on this one, thank you!

If it helps someone what did work for me was installing Visual Studio Tools for Unreal Engine in the Get Tools And Features>Game Development in C++>
It started using UBA when compiling and doing some strange things but compiled ok.
If you don’t see the option to build only your game you can go to the project explorer and right clicking in your game project> Set As Startup Project and the options reapear

Unfortunately this situation is still poor with UE 5.8 & VS 2026, after fixing this issue I just got another related to Microsoft issues, so I’ve switched IDEs, I just want to make my game, not constantly have to deal with IDE issues.