Errors when trying to build a project

I’m pretty new to unity, and have been trying to build a simple, single scene project, which has been going relatively well for the most part, but I’m running into a problem now when I try to actually build it, and I’m not sure what the error codes mean or how to fix them. If anyone has any insight on what I can do to fix the problem and get this project built, I’d greatly appreciate it. I’ve attached the error codes below.

This applies to Android AND other builds:

Android build not building:

Recently (circa July 2022) there have been reports of Unity’s installer failing to install the Android Tools.

If it’s not that, then here’s how to troubleshoot:

First, make a blank project with a single blank scene and prove that it builds successfully.

If it does NOT build, then go fix your Unity installation, or your other tools, such as Android SDK, NDK, JDK, etc.

Until you can build a blank project to the target platform, don’t fiddle with anything else.

Here was how I brought up Unity2020.3.41 and the Android SDK 31 on October 30, 2022:

Once you can build a blank project, now bisect the problem by bringing over parts of your current project and building it one subsystem at a time, perhaps stubbing things out that might trigger compiler errors.

Most often things that prevent building are third-party libraries such as Firebase.

Once you identify the subsystem, go to the documentation for it and make sure you are doing it correctly.

It may also be helpful to work through a tutorial or two for whatever subsystem is making the build fail.

No idea what the problem was, but I created a new project, made sure it could build without problems, then ported everything over from the original project and was finally able to build the whole thing exactly as it was setup before. Not sure what was causing it to fail originally, but creating a new project seems to have been the solution, so thank you for the suggestion.

1 Like