Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

General Discussion

Tojo Alex
PLUS
Tojo Alex
Courses Plus Student 13,331 Points

I 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
Wesley Trayer
13,812 Points

In 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
PLUS
Tojo Alex
Courses Plus Student 13,331 Points

ok 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
Wesley Trayer
13,812 Points

Does 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
PLUS
Tojo Alex
Courses Plus Student 13,331 Points

error 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 nameUnityEngine.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 nameUnityEngine.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
PLUS
Tojo Alex
Courses Plus Student 13,331 Points

now i'm working on a solution but i still may need the assist

Wesley Trayer
Wesley Trayer
13,812 Points

Ok, great. Hope you figure it out. :)

Oh, and I found a thread on this error on the Unity forum.