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
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
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.