Search Issue Tracker

Not Reproducible

Votes

7

Found in

2018.3.0b8

Issue ID

1096338

Regression

No

[XR][Oculus][Android]Building application as an App Bundle fails when removing one Target Architechture and building second time

XR SDK

-

How to reproduce:
1. Open "ReproAppBundle" project and build Android application
2. After the build is completed, do not delete the built aab file
3. Remove ARM64 from available target architectures in build settings
4. Build again and overwrite previous aab file

Expected result - Build is successful
Actual result - Build fails with "java.nio.file.AccessDeniedException:
ReproAppBundle\Temp\gradleOut\build\intermediates\jniLibs\release\armeabi-v7a\libAudioPluginOculusSpatializer.so, see the Console for details"

Notes:
1. Could not reproduce the issue with Daydream
2. Usually after trying to overwrite aab, every other build fails until the project is re-opened

Reproducible with - 2019.1.0a8, 2018.3.0b8, 2018.3.0a4

Comments (4)

  1. GodManOmar777

    Jul 05, 2019 17:43

    i found a fix just in case somebody run into this problem again

    alll you have to do is go to "inC:\Users\yourname\UnityProjects\yourproject\Temp\gradleOut\build\intermediates\jniLibs\release\armeabi-v7a and delete the libAudioPluginOculusSpatializer and rebuild and it should fix your problem because when you rebuild and switched it added that libAudioPluginOculusSpatializer which cause that error

  2. GodManOmar777

    Jul 05, 2019 04:16

    RMUK same thing happened to me exactly like you just explained it
    having the same issue here

  3. Nutaaq

    Apr 23, 2019 17:46

    In my case, running Unity HUB as administrator solved the issue.

  4. rmuk

    Mar 15, 2019 17:34

    Having the same error but i'm not using bundles. All i did was change from building for ARMv7 to ARM64 and it started happening.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.