gblxapi / UnityGBLxAPI

A Unity Game Engine API for Using xAPI in Games
https://gblxapi.org
MIT License
21 stars 4 forks source link

Error related to newtonsoft.json.dll in Unity editor #2

Open cawerkenthin opened 2 years ago

cawerkenthin commented 2 years ago

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.

cawerkenthin commented 2 years ago

I was able to fix this in my project. If anyone else has the problem, here is how I fixed it. 1) Delete references to Newtonsoft in the GBLXAPI/scripts folder. This includes JsonNet.meta, JsonNet.unitypackage.json.meta, and the entire JsonNet folder. 2) 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.) 3) In packages/manifest.json, ensure this line is included: "com.unity.nuget.newtonsoft-json": "3.0.1",

Digitdev commented 1 year ago

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 commented 9 months ago

is this error fixed? another question: is this project currently stopped?