Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

Need assistance with building

Discussion in 'Android' started by GuerillaTacticsStudios, Oct 20, 2020.

  1. GuerillaTacticsStudios

    GuerillaTacticsStudios

    Joined:
    Oct 17, 2020
    Posts:
    1
    I am stuck on this error here:
    "UnauthorizedAccessException: Access to the path "Temp\gradleOut\launcher\src\main" is denied."

    Any assistance would be appreciated.

    (Full error code)
    UnauthorizedAccessException: Access to the path "Temp\gradleOut\launcher\src\main" is denied.
    System.IO.Directory.CreateDirectoriesInternal (System.String path) (at <9577ac7a62ef43179789031239ba8798>:0)
    System.IO.Directory.CreateDirectory (System.String path) (at <9577ac7a62ef43179789031239ba8798>:0)
    UnityEditor.Android.AndroidProjectExportGradle.ExportWithCurrentSettings () (at <5f8140421e7d41ada100b629c3033aa7>:0)
    UnityEditor.Android.AndroidProjectExport.Export (UnityEditor.Android.PostProcessor.PostProcessorContext context, System.String targetPath) (at <5f8140421e7d41ada100b629c3033aa7>:0)
    UnityEditor.Android.PostProcessor.Tasks.ExportProject.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <5f8140421e7d41ada100b629c3033aa7>:0)
    UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <5f8140421e7d41ada100b629c3033aa7>:0)
    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 <5f8140421e7d41ada100b629c3033aa7>:0)
    UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <5f8140421e7d41ada100b629c3033aa7>:0)
    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 <cdc1918cb795429dbbd46f2de52cb053>:0)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr, Boolean&)
     
  2. dshewmaker

    dshewmaker

    Joined:
    Oct 31, 2013
    Posts:
    18
    Posting in case others have run into this.

    I ran into this issue and deleted the temp\gradleOut directory and did another build to get past this issue.

    I had ran out of disk space during the build so I believe a file was not written correctly and gave a misleading error even though there was enough disk space cleared out.