Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialTojo Alex
Courses Plus Student 13,331 PointsI apparently have an error o do with web gl
Magically this error appeared :
Assets/Editor/CrossPlatformInput/CrossPlatformInputInitialize.cs(91,34): error CS0619: `UnityEditor.BuildTargetGroup.WebPlayer' is obsolete: `WebPlayer was removed in 5.4, consider using WebGL'
4 Answers
Wesley Trayer
13,812 PointsIn the file "CrossPlatformInputInitialize.cs", on line 91, replace "WebPlayer" with "WebGL". This problem will appear in almost every treehouse project.
(91,34) represents the line and column number in the file that the error occurs at. This helps you identify where the problem lies.
Hope this helps.
Tojo Alex
Courses Plus Student 13,331 Pointsok now I fixed that but then I get this error : error CS1704: An assembly with the same name `UnityEngine.UI' has already been imported. Consider removing one of the references or sign the assembly
Wesley Trayer
13,812 PointsDoes it give the name of the file in which the error occurs? This is what the file path looks like in an error:
Assets/Editor/CrossPlatformInput/CrossPlatformInputInitialize.cs(91,34):
Also, what other errors are appearing in the console? Sometimes another error will shed light on the real problem. (The console is a tab next to the project tab at the bottom of the screen. If you're using the default layout.) In the console, you can have three types of errors: alerts (white), warnings (yellow), and errors (red). (I don't know their "correct" names.) Alerts and warnings won't stop you from running the game, while errors will, though sometimes the alerts and warnings can give clues as to the root of the errors.
I would guess, though this is just off the top of my head, that the file in which the error occurs probably says, "using UnityEngine.UI" at the top, and this can be removed. It's probably automatically imported by Unity in the newest version.
Hope this helps you solve the problem!
Tojo Alex
Courses Plus Student 13,331 Pointserror CS1704: An assembly with the same name UnityEngine.UI' has already been imported. Consider removing one of the references or sign the assembly
C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/GUISystem/UnityEngine.UI.dll (Location of the symbol related to previous error)
C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/GUISystem/Standalone/UnityEngine.UI.dll (Location of the symbol related to previous error)
error CS1704: An assembly with the same name
UnityEngine.Networking' has already been imported. Consider removing one of the references or sign the assembly
C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/Networking/UnityEngine.Networking.dll (Location of the symbol related to previous error)
C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/Networking/Standalone/UnityEngine.Networking.dll (Location of the symbol related to previous error)
error CS1704: An assembly with the same name UnityEngine.Timeline' has already been imported. Consider removing one of the references or sign the assembly
C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/Timeline/RuntimeEditor/UnityEngine.Timeline.dll (Location of the symbol related to previous error)
C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/Timeline/Runtime/UnityEngine.Timeline.dll (Location of the symbol related to previous error)
error CS1704: An assembly with the same name
UnityEngine.GoogleAudioSpatializer' has already been imported. Consider removing one of the references or sign the assembly
C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/UnityGoogleAudioSpatializer/Runtime/UnityEngine.GoogleAudioSpatializer.dll (Location of the symbol related to previous error)
C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/UnityGoogleAudioSpatializer/RuntimeEditor/UnityEngine.GoogleAudioSpatializer.dll (Location of the symbol related to previous error)
error CS1704: An assembly with the same name `UnityEngine.HoloLens' has already been imported. Consider removing one of the references or sign the assembly
C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/UnityHoloLens/Runtime/UnityEngine.HoloLens.dll (Location of the symbol related to previous error)
C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/UnityHoloLens/RuntimeEditor/UnityEngine.HoloLens.dll (Location of the symbol related to previous error)
Compilation failed: 5 error(s), 0 warnings
Tojo Alex
Courses Plus Student 13,331 Pointsnow i'm working on a solution but i still may need the assist
Wesley Trayer
13,812 PointsOk, great. Hope you figure it out. :)
Oh, and I found a thread on this error on the Unity forum.