Unity crash during build - Please help Unity 2019.2.1

Hi,

I am using Unity 2019.2.1
After build an apk and checking that it works fine, when I wanted to build an aab unity it always crashed at the same time:

Build config

this is the last thing the editor.log shows:
[00:00:00] Enlighten: Precompute started.
[PathTracer] building lightmap data asset.
[00:00:00] Enlighten: Finished 1 Layout Systems job (0.00s execute, 0.00s integrate, 0.01s wallclock)
[00:00:00] Enlighten: Finished 1 Tetrahedralize Probes job (0.00s execute, 0.00s integrate, 0.02s wallclock)
[00:00:00] Enlighten: Precompute took 0.031055 seconds.
Enlighten scene contents: 0 geometries. 0 instances. 0 systems. 0 probe groups. 0 cube maps. Scene is up-to-date.
[PathTracer] building lightmap data asset.

Collecting Enlighten data

Please help.

8411865–1111668–Editor.txt (169 KB)

Try turning off lightmaps on scene 0, see if you can at least get it to build.

If you can, perhaps try reimport all.

Or alternately pre-bake the lightmaps from the editor before building.

BUT… the APK vs AAB thing sounds like it might be this:

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.

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 that subsystem.

Thank you for taking the time to help me, I solved the problem by updating to unity 2019.4

1 Like