4

错误:

- ArgumentException: The Assembly UnityEngine is referenced by UnityEngine.UI ('D:/Program Files/Unity2018/Editor/Data/UnityExtensions/Unity/GUISystem/Standalone/UnityEngine.UI.dll'). But the dll is not allowed to be included or could not be found.
UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse (System.String assemblyPath, System.Collections.Generic.List`1 alreadyFoundAssemblies, System.String[] allAssemblyPaths, System.String[] foldersToSearch, System.Collections.Generic.Dictionary`2 cache, BuildTarget target) (at C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:156)
UnityEditor.AssemblyHelper.FindAssembliesReferencedBy (System.String[] paths, System.String[] foldersToSearch, BuildTarget target) (at C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:196)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

- Build completed with a result of 'Failed'
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

- UnityEditor.BuildPlayerWindow+BuildMethodException: 3 errors
  at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (BuildPlayerOptions options) [0x0020e] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:181 
  at UnityEditor.BuildPlayerWindow.CallBuildMethods (Boolean askForBuildLocation, BuildOptions defaultBuildOptions) [0x00065] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:88 
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

我没有脚本错误,在更新到 unity3d 2017.3(之前是 2017.2)后,我什至无法构建一个空的新项目。

4

2 回答 2

0

这只是hammus 给出的评论的答案,这似乎有效(以便其他人可以尽快找到解决方案):

尝试删除通常在 C:\ProgramData\Unity\index-local.xmlUnity 关闭时找到的 index-local.xml 文件。重新打开项目并尝试再次构建。

于 2018-08-19T23:58:33.387 回答
0

我通过删除其他设置(graffics api)中的 open gles3 支持解决了这个问题。也许你可以用这个解决

于 2018-10-04T21:44:31.253 回答