Error while building for android,Error while building for Android : IOException: Cannot create Library/BuildPlayerData\Editor because a file with the same name already exists.
So the other day I was building my project for android when an unusual error pops up. I have no idea how to fix this and am completely bamboozled and almost thought about the meaning of life. Pls someone help it's driving me crazy.
ERROR: IOException: Cannot create Library/BuildPlayerData\Editor because a file with the same name already exists. System.IO.Directory.CreateDirectory (System.String path) (at :0) UnityEditor.VisualStudioIntegration.DirectoryIOProvider.CreateDirectory (System.String path) (at :0) UnityEditor.Build.Player.BuildPlayerDataGenerator.CreateCleanFolder (System.Boolean isEditor) (at :0) UnityEditor.Build.Player.BuildPlayerDataGenerator.GenerateForAssemblies (System.String[] assemblies, System.String[] searchPaths, UnityEditor.BuildTarget buildTarget, System.Boolean isEditor) (at :0) UnityEditor.Build.Player.BuildPlayerDataGeneratorNativeInterface.GenerateForAssemblies (System.String[] assemblies, System.String[] searchPaths, UnityEditor.BuildTarget buildTarget, System.Boolean isEditor) (at :0) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&) ,Whenever i am trying to build my game for android this error pops up :
IOException: Cannot create Library/BuildPlayerData\Editor because a file with the same name already exists. System.IO.Directory.CreateDirectory (System.String path) (at :0) UnityEditor.VisualStudioIntegration.DirectoryIOProvider.CreateDirectory (System.String path) (at :0) UnityEditor.Build.Player.BuildPlayerDataGenerator.CreateCleanFolder (System.Boolean isEditor) (at :0) UnityEditor.Build.Player.BuildPlayerDataGenerator.GenerateForAssemblies (System.String[] assemblies, System.String[] searchPaths, UnityEditor.BuildTarget buildTarget, System.Boolean isEditor) (at :0) UnityEditor.Build.Player.BuildPlayerDataGeneratorNativeInterface.GenerateForAssemblies (System.String[] assemblies, System.String[] searchPaths, UnityEditor.BuildTarget buildTarget, System.Boolean isEditor) (at :0) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
I have tried everything I know to make this work but to no avail. Any help would be much appreciated
Your answer
Follow this Question
Related Questions
How to fix these errors? 0 Answers
Having trouble with my app/game loading on my Android LG phone. 1 Answer
Getting Errors when building for android platform. Need help [Urgent] 0 Answers
Android SDK error build 7 Answers
Failed to present D3D11 swapchain due to device reset/removed Unity 2020 4 Answers