TwitchLib / TwitchLib.Unity

TwitchLib repository representing all code belonging to the implementation of TwitchLib for Unity. Maintained primarily by LuckyNoS7evin.
164 stars 33 forks source link

Newtonsoft.json error #69

Open raspverry opened 11 months ago

raspverry commented 11 months ago

hello, im currently using untiy 2021.3.11. I put all files of Twitchlib.unity into my project. then, i got an 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. (D:/Unity/Projects/Old_TwitchAI/Library/PackageCache/com.unity.nuget.newtonsoft-json@3.0.2/Runtime/Newtonsoft.Json.dll) 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. (Assets/TwitchLib.Unity/Newtonsoft.Json.dll) i changed the name of Newtonsoft.Json.dll in twitchLib.unity folder, but then i got another error Library\PackageCache\com.unity.services.core@1.4.2\Runtime\Core.Internal\Registry\DependencyTreeExtensions.cs(51,24): error CS0433: The type 'JObject' exists in both 'Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' and 'Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' is there any solution for this error>?

baffler commented 11 months ago

Had this issue with 2022 as well, I just deleted the Newtonsoft.Json.dll file completely from the TwitchLib.Unity folder. I believe that ended up giving another error and I followed this link to install Newtonsoft from the Package Manager, however I didn't put "3.0.1" as the version, I left it blank and it just gave me the latest version (it gave me version 3.2.1).