Search Issue Tracker
Fixed
Fixed in 4.5.4
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
- "WebGL Template" icons disappear when building the project with the Project Settings opened
- Variant Family window UI issues when Prefab title is long
- Player crash when switching focus in Exclusive Fullscreen mode with DirectX 12
- Too little validation messages in the "WebAssembly Language Features" Memory settings
- Project Settings Search Highlights are misaligned when using the Bitmap Text Rendering Mode
Resolution Note:
Added the Android JNI dependency in Oculus XR Plugin 4.5.4.
Resolution Note (fix version 4.5.4):
Added the Android JNI dependency in Oculus XR Plugin 4.5.4.