You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Error related to newtonsoft.json.dll in Unity editor #2
If you attempt to use GBLxAPI in newer versions of Unity, you will receive this error:
Multiple precompiled assemblies with the same name Newtonsoft.Json.dll included or the current platform. Only one assembly with the same name is allowed per platform. (C:/Unity Files/Test Import/Library/PackageCache/com.unity.nuget.newtonsoft-json@2.0.0/Runtime/Newtonsoft.Json.dll
It appears that Newtonsoft is included by unity in Plastic.
I was able to fix this in my project. If anyone else has the problem, here is how I fixed it.
Delete references to Newtonsoft in the GBLXAPI/scripts folder. This includes JsonNet.meta, JsonNet.unitypackage.json.meta, and the entire JsonNet folder.
Search all folders in the project for Newtonsoft.Json.dll and remove those that are not version 12. (Note: this is dependent on the version of Newtonsoft in the package below.)
In packages/manifest.json, ensure this line is included:
"com.unity.nuget.newtonsoft-json": "3.0.1",
Art can you confirm if the the pull request that is pending on Newtonsoft will work or do you have an alternate pull request you would want considered.
Activity
cawerkenthin commentedon Apr 11, 2022
I was able to fix this in my project. If anyone else has the problem, here is how I fixed it.
"com.unity.nuget.newtonsoft-json": "3.0.1",
Fix json conflict
Digitdev commentedon Jan 23, 2023
Art can you confirm if the the pull request that is pending on Newtonsoft will work or do you have an alternate pull request you would want considered.
mateusnazarioc commentedon Jan 25, 2024
is this error fixed? another question: is this project currently stopped?