Have to reimport all assets before building to avoid black screen in AR Foundation with URP

I am making a mobile AR app and have many issues with black screens.
The only way I can have the camera to show output on the screen is to reimport all assets before building, which is very annoying. Sometimes I do see the particle cloud working on the black screen

Unity 2020.2 + AR Foundation + ARCore + URP. All are updated to the latest version.
Using an Galaxy S8+ with ARCore

After reimporting, I get this message in the logs: https://pastebin.com/S8ezzbKk

I already have newARBackground on the renderer.
I also cannot see the XR Management tool in the settings, which also is weird. Not sure if it’s related. I imported AR foundation and ARCore from the package manager

Team asked that you file a bug report for us: Unity QA: Building quality with passion