Search Issue Tracker
Not Reproducible
Votes
9
Found in
2018.3.0a1
2018.3.0b10
Issue ID
1101174
Regression
Yes
[Android] Building fails with UnauthorizedAccessException for OVRPlugin.aar after upgrading the Oculus Utilities package
Steps to reproduce:
1. Open user attached project
2. Build the project
3. Notice that build fails with: "UnauthorizedAccessException: Access to the path "Assets\Oculus\VR\Plugins\1.31.0\Android\OVRPlugin.aar" or "Temp\StagingArea\aar\OVRPlugin.aar" is denied." and it's falsely outputted that it Succeeded
Expected result: building on Android should not fail with UnauthorizedAccessException for OVRPlugin.aar after upgrading the Oculus Utilities package
Reproduced in: 2019.1.0a12, 2018.3.0f1, 2018.3.0a1
Not reproduced in: 2018.2.19f1
Regression since: 2018.3.0a1
Comments (3)
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
- Incorrect Shader keyword activation for Shadows when no Light is present in URP
- Editor freezes when loading a specific AssetBundle
- WebGPU builds with Multithreading enabled crash on Safari
- Set as Value in UI Builder doesn't work across all properties.
- Calculating time durations in RenderDoc with DX12 causes 'Device Lost error' popup
yankohurta
Jan 20, 2019 00:39
No matter if you're upgrading... Brand new Unity and Oculus Plugin (1.28, 1.31, 1.32, whatever) installation. Just create ANY project with a custom scene and a timeline. Build in 2018.* fails with the SAME ridiculous error. Temp folder is managed by Unity, and error happens 'cause ALL files and directories UNDER Temp are READ ONLY! Tried to mess with permissions and even ownership... Nothing happened. Shame on Unity and Oculus for this weak partnership. Unfortunately, Oculus Go was a test bench for Quest. Weird dev platform EVER.
edenizxyz
Dec 26, 2018 13:23
I was also encountering this problem. I had OVRPlugin.aar from oculus integration also I realize that oculus android package is enabled in the package manager. After removing oculus from package manager this error disappeared and project builds. But now I am having weird problems with the application which might not be related to this.
notdococ
Dec 15, 2018 04:18
Workaround: https://forum.unity.com/threads/solved-cant-make-android-build-access-to-ovrplugin-aar-denied.505856/