Question by
thesam1798 · May 31, 2018 at 09:49 AM ·
buildbuild-errorbuild error
Small problem during the build
Hello to you, I have a problem when building on any project. I have tried to reinstall unity 3 times, once just install and reinstall, second time download all new unity and third time delete all unity file registry keys and user file. But always the same mistake, even in empty projects.
Here's the problem:
ArgumentException: The Assembly UnityEngine is referenced by UnityEngine.UI ('C:/Program Files/Unity/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[T] alreadyFoundAssemblies, System.String[] allAssemblyPaths, System.String[] foldersToSearch, System.Collections.Generic.Dictionary`2[TKey,TValue] cache, UnityEditor.BuildTarget target) (at C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:154)
UnityEditor.AssemblyHelper.FindAssembliesReferencedBy (System.String[] paths, System.String[] foldersToSearch, UnityEditor.BuildTarget target) (at C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:194)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Comment
Answer by thesam1798 · May 31, 2018 at 11:39 AM
fix, after 1 hour of research.
deleted C:\ProgramData\Unity\index-local.xml while Unity was closed, reopened the project, and tried to build again. It finally works!
Your answer
![](https://koobas.hobune.stream/wayback/20220612163753im_/https://answers.unity.com/themes/thub/images/avi.jpg)