Search Unity

  1. Unity 2019.1 beta is now available.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. We're looking for insight from anyone who has experience with game testing to help us better Unity. Take our survey here. If chosen to participate you'll be entered into a sweepstake to win an Amazon gift card.
    Dismiss Notice
  4. Want to provide direct feedback to the Unity team? Join the Unity Advisory Panel.
    Dismiss Notice
  5. Unity 2018.3 is now released.
    Dismiss Notice
  6. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice

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)