简体   繁体   中英

Unity build Errors

So ive made my game and tried to'build it. I get a couple of errors that mean nothing to me.

Here's the errors:

UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x00234] in C:\\buildslave\\unity\\build\\Editor\\Mono\\BuildPlayerWindowBuildMethods.cs:191 at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x0007f] in C:\\buildslave\\unity\\build\\Editor\\Mono\\BuildPlayerWindowBuildMethods.cs:97 UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

UnityException: Build path contains project built with "Create Visual Studio Solution" option, which is incompatible with current build settings. Consider building your project into an empty directory. UnityEditor.WindowsStandalone.WindowsDesktopStandalonePostProcessor.CheckSafeProjectOverwrite (UnityEditor.Modules.BuildPostProcessArgs args) (at C:/buildslave/unity/build/PlatformDependent/WinPlayer/Extensions/Managed/WindowsDesktopStandalonePostProcessor.cs:58) DesktopStandalonePostProcessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/DesktopStandalonePostProcessor.cs:43) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

It should build and run right. It currently does not do so. Any help will be appreciated. :D

UnityException: Build path contains project built with "Create Visual Studio Solution" option, which is incompatible with current build settings. Consider building your project into an empty directory.

sounds pretty self-explanatory.

Before you have built the project with that option enabled, now you are trying it without.

在此处输入图片说明

Either

  • A. Enable that option again if you want to create a VS solution
  • B. Delete the content created by the former build or
  • C. As the exception suggests simply choose another target folder for the new build.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM