Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice
  2. Megacity Metro Demo now available. Download now.
    Dismiss Notice

Bug UnauthorizedAccessException: n: Access to the path ... UnityAppController+Notifications.h" is denied

Discussion in '2020.1 Beta' started by RobertTry, Nov 14, 2019.

  1. RobertTry

    RobertTry

    Joined:
    Jan 25, 2015
    Posts:
    8
    Hi
    I am using newest unity 2020.1a12.136. When I am building android project during build process Editor throw error:

    Code (CSharp):
    1. UnauthorizedAccessException: Access to the path "D:/TestBuilds/Test2\unityLibrary\src\main\Il2CppOutputProject\Plugins\UnityAppController+Notifications.h" is denied.
    2. System.IO.File.Delete (System.String path) (at <437ba245d8404784b9fbab9b439ac908>:0)
    3. System.IO.Directory.RecursiveDelete (System.String path) (at <437ba245d8404784b9fbab9b439ac908>:0)
    4. System.IO.Directory.RecursiveDelete (System.String path) (at <437ba245d8404784b9fbab9b439ac908>:0)
    5. System.IO.Directory.Delete (System.String path, System.Boolean recursive) (at <437ba245d8404784b9fbab9b439ac908>:0)
    6. UnityEditor.Android.AndroidProjectExportGradle.CopyIl2cppContents (System.String il2cpp) (at <0307c3bfb8a74c39aa6559b5fb51a485>:0)
    7. UnityEditor.Android.AndroidProjectExportGradle.ExportWithCurrentSettings () (at <0307c3bfb8a74c39aa6559b5fb51a485>:0)
    8. UnityEditor.Android.AndroidProjectExport.Export (UnityEditor.Android.PostProcessor.PostProcessorContext context, System.String targetPath) (at <0307c3bfb8a74c39aa6559b5fb51a485>:0)
    9. UnityEditor.Android.PostProcessor.Tasks.ExportProject.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <0307c3bfb8a74c39aa6559b5fb51a485>:0)
    10. UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <0307c3bfb8a74c39aa6559b5fb51a485>:0)
    11. UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (UnityEditor.BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at <0307c3bfb8a74c39aa6559b5fb51a485>:0)
    12. UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <0307c3bfb8a74c39aa6559b5fb51a485>:0)
    13. UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, System.String installPath, System.String companyName, System.String productName, System.Int32 width, System.Int32 height, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at <71e256980c424823a60822d6a2aa03cd>:0)
    14. UnityEditor.EditorApplication:Internal_CallGlobalEventHandler()
    This was not an issue in 2020.1a4, not shore for 2020.1a9