Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Newtonsoft.json error #69

Open
raspverry opened this issue Aug 25, 2023 · 1 comment
Open

Newtonsoft.json error #69

raspverry opened this issue Aug 25, 2023 · 1 comment

Comments

@raspverry
Copy link

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/[email protected]/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\[email protected]\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
Copy link

baffler commented Sep 20, 2023

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants