Skip to content

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

Open

Description

@cawerkenthin

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.

Activity

  1. cawerkenthin commented on Apr 11, 2022

    @cawerkenthin
    Author

    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",
  2. added a commit that references this issue on Apr 12, 2022
  3. Digitdev commented on Jan 23, 2023

    @Digitdev
    Collaborator

    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.

  4. mateusnazarioc commented on Jan 25, 2024

    @mateusnazarioc

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions