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
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
- [macOS] There is no way to tell if you are running under Rosetta
- [AssetImport] Changing Graphics APIs in Android platform reimports most of the assets (textures, fonts, ...)
- Stack frames are missing from Console window when in Full Stack trace mode
- An error is returned and no package is listed if an invalid package is hosted on a scoped registry
- Crash with ComputeTileMeshJob when generating Navmesh
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/