UnityEngine.UI.dll is not allowed

I downloaded unity3d tonight and tried to do a build on a project with no scripts, nothing. Just a blank shell.

What am I doing wrong?

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.List1 alreadyFoundAssemblies, System.String[ ] allAssemblyPaths, System.String[ ] foldersToSearch, System.Collections.Generic.Dictionary2 cache, BuildTarget target) (at C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:152)
UnityEditor.AssemblyHelper.FindAssembliesReferencedBy (System.String[ ] paths, System.String[ ] foldersToSearch, BuildTarget target) (at C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:192)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

No-one has seen this before?

I’ve had this problem too - but no one seems to have any ideas. I’ve reinstalled unity and reinstalled windows with no joy. Have you found a way to fix this?

I’m having this problem now… exact same problem cropped up midway through one of my projects, and persists even when creating a new project from scratch with no scripts.

update - I deleted C:\ProgramData\Unity\index-local.xml while Unity was closed, reopened the project, and tried to build again. It finally works!

5 Likes

Fantastic - this solution works for me too

FANTASTIC! This solution did it for me! You are a true lifesaver.

Fantastic - this solution works for me too

i have same problem, but i can’t find that index-local.xml file. where is it? nowhere in unity folder.

oh, I found it. Thanks! it works too! it take a time almost 24 hours… thanks a lot!

Thanks mate…a lot…i was creating Counter Strike like game…haha
FIX : Delete the file shown in pic

3430290--271031--sada.PNG

1 Like

You are my hero!

Mua…
Take a cold beer, I invite.
Thanks

You are a life saver. Thanks!

Thank you this worked for me as well!

One more cold beer for you :wink:

deleting that didn’t work for me :frowning:

Perfeito!!! Obrigado