Unity crash when I try to build game on Android

Unity crashes at “Building Gradle project” when I try to build game on Android. Until now I used to change Build System from Gradle to Internal for it to work. On the new version of Unity the option to change the Build System had been removed. Is there a solution for this or do I have to download an older version of Unity to use?

1 Like

Did you ever figure this out? I’ve been fighting with crashes during Android builds for about 6 months now (2021.3.8). When it happens, Unity hard crashes without offering to submit a bug report.
Editor.log just says:

=================================================================
    Native Crash Reporting
=================================================================
Got a UNKNOWN while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================

=================================================================
    Managed Stacktrace:
=================================================================
      at <unknown> <0xffffffff>
      at UnityEditor.Build.Content.BuildUsageCache:Internal_Destroy <0x000e0>
      at UnityEditor.Build.Content.BuildUsageCache:smile:ispose <0x00122>
      at UnityEditor.Build.Content.BuildUsageCache:Finalize <0x000a0>
      at System.Object:runtime_invoke_virtual_void__this__ <0x0018b>
=================================================================