Search Issue Tracker

Not Reproducible

Votes

1

Found in

5.4.0b7

Issue ID

773060

Regression

No

Unexpected compilation errors about missing UI module thrown when building project to Standalone after project upgrade

UI

-

- Open the attached project in Unity 5.4
- Fix two script compilation errors created by some obsolete APIs (the original project was working in Unity 5.3)
- Try to do a Build and Run for Windows Standalone as a target. You will be presented with lots of errors like: "The type or namespace name `UI' does not exist in the namespace `UnityEngine'. Are you missing an assembly reference?" and the player fails to build.

Workaround: Reimport all assets (though this shouldn't be necessary). This is a regression, since building in Unity 5.3 works fine.

Comments (20)

  1. smali

    Nov 26, 2016 10:21

    I have remove Library\ScriptAssemblies folder, and reimport it , i t has solved now : Alhamdulillah

  2. blackshtormx

    Sep 14, 2016 14:57

    I have same issue but for all of my and standard assets scripts.

  3. Tomas1856

    Aug 03, 2016 06:52

    Try deleting C:\ProgramData\Unity\index-local.xml and see if that helps, if it does - can you say if you've used 5.4 beta before 5.4 release?

  4. OmerEizenberg

    Jul 31, 2016 09:09

    Bad Bad issue costs days for my company

  5. Mangiapelo

    Jul 19, 2016 14:36

    I have the exact same problem with Unity 5.3.4f1(64bit). I have tried all the possible solutions I googled none of them work.

  6. KvaGram

    Jul 04, 2016 08:40

    Did not upgrade during project, but had a simular problem. deleting library solved the problem.
    Note: in my case I also had an issue of UnityEditor useage also causing build errors. Unknown if it is related.

  7. Killersan

    Jun 15, 2016 12:28

    If reimport won't help try to remove Library\UnityAssemblies folder (make a backup earlier). I found out that it's resolving the problem in 5.4b20 and 5.4b21.

  8. Killersan

    Jun 09, 2016 16:23

    It was only present in migrated big project. After I deleted ..\Library\UnityAssemblies\* files and let them rebuild problem disappeared.

  9. Killersan

    Jun 09, 2016 15:31

    Issue still exists in 5.4b20.

  10. Guhanesh

    May 20, 2016 12:05

    issue still exists.Unity Beta 5.4(B18).
    issue found on building for Android too.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.