Search Unity

UnityEngine.UI.dll is not allowed

Discussion in 'Editor & General Support' started by RickDoll, Nov 21, 2017.

  1. RickDoll

    RickDoll

    Joined:
    Nov 21, 2017
    Posts:
    5
    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.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: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)
     
  2. RickDoll

    RickDoll

    Joined:
    Nov 21, 2017
    Posts:
    5
    No-one has seen this before?
     
  3. difficultnerd

    difficultnerd

    Joined:
    May 3, 2014
    Posts:
    52
    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?
     
  4. weepingwitch

    weepingwitch

    Joined:
    Dec 5, 2016
    Posts:
    3
    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.
     
  5. weepingwitch

    weepingwitch

    Joined:
    Dec 5, 2016
    Posts:
    3
    update - I deleted C:\ProgramData\Unity\index-local.xml while Unity was closed, reopened the project, and tried to build again. It finally works!
     
    jovino, bcgreen24, chaosmaker and 2 others like this.
  6. difficultnerd

    difficultnerd

    Joined:
    May 3, 2014
    Posts:
    52
    Fantastic - this solution works for me too
     
  7. fs459

    fs459

    Joined:
    Jan 20, 2018
    Posts:
    1
    FANTASTIC! This solution did it for me! You are a true lifesaver.
     
  8. unity_y68Q_aFKWQM6iw

    unity_y68Q_aFKWQM6iw

    Joined:
    Jan 31, 2018
    Posts:
    1
    Fantastic - this solution works for me too
     
  9. hamstar0530

    hamstar0530

    Joined:
    Mar 5, 2018
    Posts:
    2
    i have same problem, but i can't find that index-local.xml file. where is it? nowhere in unity folder.
     
  10. hamstar0530

    hamstar0530

    Joined:
    Mar 5, 2018
    Posts:
    2
    oh, I found it. Thanks! it works too! it take a time almost 24 hours... thanks a lot!
     
  11. DeathGOD_7

    DeathGOD_7

    Joined:
    Oct 20, 2017
    Posts:
    6
    Thanks mate...a lot...i was creating Counter Strike like game..haha
    FIX : Delete the file shown in pic
     

    Attached Files:

    • sada.PNG
      sada.PNG
      File size:
      30.5 KB
      Views:
      1,433
    ALEX_PAINT likes this.
  12. azolipro

    azolipro

    Joined:
    Mar 15, 2018
    Posts:
    1
    You are my hero!
     
  13. sysmaya

    sysmaya

    Joined:
    Nov 30, 2013
    Posts:
    16
    Mua...
    Take a cold beer, I invite.
    Thanks
     
  14. chaosmaker

    chaosmaker

    Joined:
    Jul 21, 2013
    Posts:
    29
    You are a life saver. Thanks!
     
  15. eethomas

    eethomas

    Joined:
    Jan 11, 2018
    Posts:
    1
    Thank you this worked for me as well!
     
  16. PeterPam

    PeterPam

    Joined:
    Nov 9, 2015
    Posts:
    18
    One more cold beer for you ;)
     
  17. Warore

    Warore

    Joined:
    Jan 30, 2018
    Posts:
    1
    deleting that didn't work for me :(
     
  18. Diegotunis

    Diegotunis

    Joined:
    Feb 3, 2019
    Posts:
    1
    Perfeito!!!! Obrigado