Issue regarding build not working in Android but working fine in editor

,

Hello,

I have been trying to build my app using URP for Android,
the app is unable to build correctly, I do not get past the splash screen.
Both IL2CPP and Mono compilation are failing to provide with a working build.

The issue is for an AR application that is working in the editor and its feature complete,
yet does not run on android. Logcat is unable to provide sufficient information to deduce an issue.
The full logcat output can be found here: 10-03 04:53:10.549 5179 5206 E AndroidRuntime: FATAL EXCEPTION: UnityMain10- - Pastebin.com

I have created a support ticket in hopes of getting direct contact with Unity,
we have purchased a Pro license in hopes of being helped faster as we are in need of urgent help.

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.

As you suggest we have tried a few things, an empty project appears to build just fine with all packages included.
I then tried systematically adding stuff back into a blank project to see where it would fail.

As soon as I add code that pertains to AR, the app starts to fail. Leading me to believe there is a problem with either my code or the API I am using for the AR…

I would highly appreciate it if anyone could take a look https://unity3d.atlassian.net/servicedesk/customer/portal/2/IN-19445

Welcome to third party libraries! Clear everything out of that empty project, then go back to the integration steps for whatever AR system you are using and recheck everything, including requirements of Unity version, etc.

It may also be helpful to post pointed questions in the AR/VR/XR forums on this board.

I was hoping that using ARFoundation would have been a painless experience.
I was optimistic and naive…