I was building and running to PC and Quest 2 on version 2022.2.1f1. After updating to 2022.2.2f1, I’m now getting the following errors only when building for Android:
Library/PackageCache/com.unity.services.core@1.7.0/Runtime/Core.Internal/Registry/DependencyTreeExtensions.cs(4,7): error CS0246: The type or namespace name 'Newtonsoft' could not be found (are you missing a using directive or an assembly reference?)Library/PackageCache/com.unity.services.core@1.7.0/Runtime/Core.Internal/Registry/DependencyTreeExtensions.cs(4,7): error CS0246: The type or namespace name ‘Newtonsoft’ could not be found (are you missing a using directive or an assembly reference?)
Library/PackageCache/com.unity.services.core@1.7.0/Runtime/Core.Internal/Registry/DependencyTreeExtensions.cs(51,24): error CS0246: The type or namespace name 'JObject' could not be found (are you missing a using directive or an assembly reference?)
Library/PackageCache/com.unity.services.core@1.7.0/Runtime/Core.Internal/Registry/DependencyTreeExtensions.cs(74,24): error CS0246: The type or namespace name 'JObject' could not be found (are you missing a using directive or an assembly reference?)
Separately, I’m also getting errors about not being able to find a class in a DLL, which is being referenced by a small bit of code in its own isolated assembly definition.
Lastly, after a domain reload, or just opening Unity, I get the following two errors:
Instance of UnityEditor.XR.OpenXR.OpenXRPackageSettings couldn't be created because there is no script with that name.
UnityEditor.EditorApplication:Internal_CallUpdateFunctions ()
We were unable to create an instance of the requested type UnityEditor.XR.OpenXR.OpenXRPackageSettings. Please make sure that all packages are updated to support this version of XR Plug-In Management. See the Unity documentation for XR Plug-In Management for information on resolving this issue.
UnityEditor.EditorApplication:Internal_CallUpdateFunctions () (at /Users/bokken/build/output/unity/unity/Editor/Mono/EditorApplication.cs:361)
^ Related to the OpenXR issues, going to 2022.2.2f1 updated OpenXR from 1.5.3 to 1.6.0. I posted this in the OpenXR issue tracker, and they said it was a Unity problem.