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
- 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.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
smali
Nov 26, 2016 10:21
I have remove Library\ScriptAssemblies folder, and reimport it , i t has solved now : Alhamdulillah
blackshtormx
Sep 14, 2016 14:57
I have same issue but for all of my and standard assets scripts.
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?
OmerEizenberg
Jul 31, 2016 09:09
Bad Bad issue costs days for my company
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.
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.
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.
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.
Killersan
Jun 09, 2016 15:31
Issue still exists in 5.4b20.
Guhanesh
May 20, 2016 12:05
issue still exists.Unity Beta 5.4(B18).
issue found on building for Android too.