Search Issue Tracker
Won't Fix
Votes
0
Found in [Package]
4.5.0
Issue ID
OXPB-187
Regression
No
Errors are thrown when installing the com.unity.xr.oculus package in a project without built-in modules and packages
Reproduction steps:
1. Open the attached “BugRepro” project
2. Open the Package Manager (Window > Package Manager)
3. Click the “*+*” button in the status bar in the top-left corner
4. Select "Add package by name..."
5. Enter the package name _com.unity.xr.oculus_
6. Click the “Add” button
7. Observe the Console window
Expected result: No errors are thrown
Actual result: Errors are thrown
Reproducible with: 4.5.0, 4.5.1 (2022.3.65f1, 6000.0.55f1, 6000.1.15f1, 6000.2.0b11, 6000.3.0a4)
Reproducible on: Windows 11
Not reproducible on: No other environment tested
Full errors:
* Library\PackageCache\com.unity.xr.oculus@f23ad2c521e1\Runtime\EnvironmentDepth.cs(60,47): error CS1069: The type name 'PermissionCallbacks' could not be found in the namespace 'UnityEngine.Android'. This type has been forwarded to assembly 'UnityEngine.AndroidJNIModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' Enable the built in package 'Android JNI' in the Package Manager window to fix this error.
* Library\PackageCache\com.unity.xr.oculus@f23ad2c521e1\Runtime\EnvironmentDepth.cs(62,17): error CS0103: The name 'Permission' does not exist in the current context
* Library\PackageCache\com.unity.xr.oculus@f23ad2c521e1\Runtime\FFR.cs(22,20): error CS0103: The name 'Permission' does not exist in the current context
* Library\PackageCache\com.unity.xr.oculus@f23ad2c521e1\Runtime\FFR.cs(115,59): error CS1069: The type name 'PermissionCallbacks' could not be found in the namespace 'UnityEngine.Android'. This type has been forwarded to assembly 'UnityEngine.AndroidJNIModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' Enable the built in package 'Android JNI' in the Package Manager window to fix this error.
* Library\PackageCache\com.unity.xr.oculus@f23ad2c521e1\Runtime\FFR.cs(117,29): error CS0103: The name 'Permission' does not exist in the current context
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Opening Terrain Prefab in Prefab Editing Mode throws "NullReferenceException" error
- [Search] Dragging query pills put them behind the search text field
- A CustomPropertyDrawer that returns a PropertyField for a property named the same as a child field will not render all child fields
- Graphics Settings shows default values instead of the real values in the Rendering Debugger when Volume.profile is assigned via script
- Deleting multiple Tags throws “NullReferenceException”, and "Retrieving array element that was out of bounds" errors when holding the Enter key
Resolution Note:
Thank you for raising this issue with us. We are currently only addressing high priority issues for the Oculus XR Plugin. As this issue has a relatively straight-forward workaround, use the package manager to install com.unity.modules.androidjni, we are opting not to fix issue.