'No active UnityEngine.XR.ARSubsystems.XRCameraSubsystem is available

I want to make an AR foundation project but I keep getting this problem .Can someone helps me please ?

No active UnityEngine.XR.ARSubsystems.XRCameraSubsystem is available.Please ensure that a valid loader configuration exists in the XR project settings



Solution 1:[1]

To make it work you have to go into project settings XR Plug-in Management and select the XR plug-in providers you need for your project. Once I ticked ARCore the camera started working correctly.

Solution 2:[2]

If like me, you already tried to check ARCore in XR Management and it's still a black screen, you might have to install on your phone the Google AR kit or something, that was my problem.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Shervin Jam
Solution 2