Access is denied while building the game

I am Trying to build a basic scene for Vive Focus 3. I am following tutorials from youtube and vive documentation. When I click build or “build and run” it works a while then building fails with this message. When I searched somesone said “run unity as admin” but i could not do it. uınity doesnt let me.

Building Library\Bee\artifacts\Android\AsyncPluginsFromLinker failed with output:
UnityEditor.Build.BuildFailedException: Exception of type 'UnityEditor.Build.BuildFailedException' was thrown. ---> System.ComponentModel.Win32Exception: ApplicationName='C:/Users/coskun.yildiz/denemevr/Library/PackageCache/com.unity.burst@7a907cf5a459/.Runtime\bcl.exe', CommandLine='+burstc "@C:\Users\COSKUN~1.YIL\AppData\Local\Temp\tmp6d5518d8.tmp"', CurrentDirectory='C:/Users/coskun.yildiz/denemevr/Assets/..', Native error= Access is denied.
C
UnityEditor.EditorApplication:Internal_CallDelayFunctions ()


Build completed with a result of 'Failed' in 1382 seconds (1381910 ms)
Building Library\Bee\artifacts\Android\AsyncPluginsFromLinker failed with output:
UnityEditor.Build.BuildFailedException: Exception of type 'UnityEditor.Build.BuildFailedException' was thrown. ---> System.ComponentModel.Win32Exception: ApplicationName='C:/Users/coskun.yildiz/denemevr/Library/PackageCache/com.unity.burst@7a907cf5a459/.Runtime\bcl.exe', CommandLine='+burstc "@C:\Users\COSKUN~1.YIL\AppData\Local\Temp\tmp6d5518d8.tmp"', CurrentDirectory='C:/Users/coskun.yildiz/denemevr/Assets/..', Native error= Access is denied.
C
UnityEditor.EditorApplication:Internal_CallDelayFunctions ()

Do you have a 3rd party antivirus? Is it perhaps Bitdefender? It seems to not like Burst.
In any case, exclude the project from on-demand virus scans from any antivirus to ensure it won’t interfere.

Also try deleting the Library folder (close project first), perhaps something is just keeping a lock on that file. If you can’t entirely delete the Library folder due to such access denied error, try again after rebooting.

For good reason. Anytime anyone recommends that as a “fix” they should get an instant slap in their face. :wink:

1 Like

Thank you! Spot on fix and guess :slight_smile:

1 Like

Haha, we shall henceforth call it “Burstdefender” :laughing: