Search Unity

Building for Android throws an exception

Discussion in 'Linux Editor' started by turbanov, Feb 4, 2019.

  1. turbanov

    turbanov

    Joined:
    Dec 22, 2014
    Posts:
    49
    Whenever I build for Android, I get this strange error. Maybe its because of my project resting on an NTFS mount, maybe not. This fixes by restarting Unity, but after the 1st build it happens again.


    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 <0d8544b6dcd44a07bf3b81aa015c76b8>:0)
    UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <0d8544b6dcd44a07bf3b81aa015c76b8>: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 <0d8544b6dcd44a07bf3b81aa015c76b8>:0)
    UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <0d8544b6dcd44a07bf3b81aa015c76b8>: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)