Search Unity

Everytime I build for Android....

Discussion in 'Linux Editor' started by turbanov, Dec 19, 2018.

  1. turbanov

    turbanov

    Joined:
    Dec 22, 2014
    Posts:
    54
    I get this weird exception, and the build is not built:

    IOException: Failed to Copy File / Directory from 'Temp/StagingArea/Data' to 'Temp/StagingArea/assets/bin/Data': destination path already exists.
    UnityEditor.FileUtil.MoveFileOrDirectory (System.String source, System.String dest) (at /home/builduser/buildslave/unity/build/Editor/Mono/FileUtil.bindings.cs:70)
    UnityEditor.Android.PostProcessor.Tasks.PrepareUnityResources.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <1cbfad5ed674425b9face5733e1f83ce>:0)
    UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <1cbfad5ed674425b9face5733e1f83ce>: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 <1cbfad5ed674425b9face5733e1f83ce>:0)
    UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <1cbfad5ed674425b9face5733e1f83ce>: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 /home/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:287)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)
     
  2. turbanov

    turbanov

    Joined:
    Dec 22, 2014
    Posts:
    54
    Seems like this directory is held by some Unity process
     

    Attached Files:

  3. turbanov

    turbanov

    Joined:
    Dec 22, 2014
    Posts:
    54
    Seems like Unity shader compiler is holdin the dir:
     

    Attached Files:

  4. novcraft

    novcraft

    Joined:
    May 25, 2016
    Posts:
    4
    Hi did you solve it? Im having the same error and I am new to Linux
     
  5. Erhannis

    Erhannis

    Joined:
    Nov 26, 2016
    Posts:
    1
    It's not a GOOD solution, but...
    sudo killall -s KILL UnityShaderCompiler
    immediately before building, seems to work for me