SocketIOUnity icon indicating copy to clipboard operation
SocketIOUnity copied to clipboard

Multiple precompiled assemblies with the same name

Open gVguy opened this issue 3 years ago • 3 comments

Hi! I'm getting this error after I add the package. It seems that Unity includes Newtonsoft.Json.dll by default, and I don't see a way how I can import yours without it.

Here's the full text of the error:

Multiple precompiled assemblies with the same name Newtonsoft.Json.dll included on the current platform. Only one assembly with the same name is allowed per platform. (/...../Library/PackageCache/com.itisnajim.socketiounity@9068aafaf2/Runtime/libs/Newtonsoft.Json Editor/Newtonsoft.Json.dll)

gVguy avatar Aug 08 '22 19:08 gVguy

https://github.com/itisnajim/SocketIOUnity/pull/18 This pull request seems to be talking about the same problem

gVguy avatar Aug 08 '22 19:08 gVguy

it seems that it has came back. Its been two days im trying to fix the error and its seems that i could not connect to the server

Solution : Delete manualy the directory Newtonsoft then add in the dependency "com.unity.nuget.newtonsoft-json": "3.0.2" As well do not use the new NewtonsoftJsonSerializer();

CodinSegal avatar Aug 18 '22 20:08 CodinSegal

Hey, I'm facing the same issue, can you please elaborate about your solution?

RubinGal avatar Sep 16 '22 07:09 RubinGal

Delete manualy the directory Newtonsoft then add in the dependency "com.unity.nuget.newtonsoft-json": "3.0.2"

no need to delete anything, fixed https://github.com/itisnajim/SocketIOUnity/pull/18

itisnajim avatar Nov 07 '22 12:11 itisnajim