Packaging Fails After Transition to 4.26 - ERROR: Unable to find target 'UE4Game'

There’s an answer to this problem if someone else is looking at this.

If I make my project a C++ project, it’s able to build from there. You don’t need to know C++ to do this, but you will have to deal with the scariness of dipping your toe into it if you haven’t already.

For anyone who doesn’t know how to do that, do the following.

  • Install the latest version of VisualStudio.
  • In your project, create a new blank C++ class.
  • Close your editor. There should be an .sln file in the same directory where your project is. If not, right click on your project and click on “Generate Visual Studio Project Files”
  • Open the .sln in Visual Studio.
  • Select the project name in Visual Studio. Towards the top beneath “Build” and “Debug”, you can select the type of build you’re doing. DebugGame, Development ,Development Editor etc. Select “Development Editor”
  • Right click on your project and click “build”. This should just take a few seconds.
  • Change the build type to be “Development”
  • Right click on your project again and click on build. This will take a little longer.
  • When the build is done, open your project again. You should be able to package at this point.
3 Likes