watson-developer-cloud / unity-sdk

:video_game: Unity SDK to use the IBM Watson services.
Apache License 2.0
569 stars 206 forks source link

Unity - The type or namespace 'Cloud' does not exist in the namespace 'IBM' (are u missing an assembly reference?) #597

Closed KingArmstring closed 5 years ago

KingArmstring commented 5 years ago

I just downloaded the sdk and placed it is the assets folder in Unity and immediately got this exception.

mamoonraja commented 5 years ago

Hi @KingArmstring! thanks for opening the issue. Can you please confirm whether you added the core package to the asset folder or not, see https://github.com/watson-developer-cloud/unity-sdk#installing-the-sdk-source-into-your-unity-project.

bmoodyP3 commented 5 years ago

I am also having this issue.

bmoodyP3 commented 5 years ago

I am using Unity version 2019.2.0f1 with Magic Leap. I am using unity-sdk-4.0.0 and unity-sdk-core-1.0.0. I also get the following errors:

image

mamoonraja commented 5 years ago

Do you have both unity-sdk-4.0.0 and unity-sdk-core-1.0.0 in assets directory? I am using the same versions and not seeing an error right now, debugging more to see if something is missing in new release.

bmoodyP3 commented 5 years ago

Yes, both are in the top level.

mamoonraja commented 5 years ago

I just downloaded the unity-sdk and the unity-sdk-core and built a new project in Unity 2019.2.0f1 in Mac OS and I am not seeing the errors. However, I see errors when the core is not correctly added. Try clearing the console after adding the core to the Assets directory. If the issue still persists please provide the following info:

mamoonraja commented 5 years ago

Meanwhile, I am trying to build the project in Windows machine.

bmoodyP3 commented 5 years ago

I made a new Unity project and now I have the following error: image

bmoodyP3 commented 5 years ago

This is my set up: image

bmoodyP3 commented 5 years ago

I have some preview packages in use. Might that be the issue?

bmoodyP3 commented 5 years ago

Here is my OS version: image

mamoonraja commented 5 years ago

That's good news because you can get rid of that error by following instructions

bmoodyP3 commented 5 years ago

I tried again with my original project after updating my Windows and I continue to get the above error.

bmoodyP3 commented 5 years ago

This is my project structure:

image

mamoonraja commented 5 years ago

Looking closely at error message and directory structute it looks like you have a dll file for WebSocket plugin saved in Plugins/Websocket/* and there is a dll file with the same name in unity-sdk-core-1.0.0/Pulgins/* too, you can rename either one and issue should resolve.

bmoodyP3 commented 5 years ago

Hi @mamoonraja , thank you for your help. I did as you suggested and can now access Watson when I run the Magic Leap in the editor. However, when I try to build for the Magic Leap, I get the following errors:

bmoodyP3 commented 5 years ago

image

bmoodyP3 commented 5 years ago

I was able to solve this by clicking, "include Lumin platform" on the Newsoft DLL in the following directory:

image

germanattanasio commented 5 years ago

@bmoodyP3 feel free to open a PR if you think the installation instructions should be updated

mamoonraja commented 5 years ago

Since the issue is related to the Lumin platform and is resolved, I am closing this one.

pluto93 commented 10 months ago

I am having the same issue. Tried all the solutions provided but I'm still facing this issue. I am using unity 2021.3.1f1, unity sdk 6.0.0 and unity sdk core 1.2.4

Screenshot 2024-01-31 at 12 10 17 pm