Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Resolved Newtonsoft Json Errors in Unity 2019.4.2f1

Discussion in 'Localization Tools' started by Carlosgrr, Jul 7, 2020.

  1. Carlosgrr

    Carlosgrr

    Joined:
    Jun 20, 2019
    Posts:
    8
    After updating to the latest version 0.7.1-preview, I have started receiving this console errors:
    -----
    1-
    Error: Could not load signature of Google.Apis.Auth.GoogleJsonWebSignature+<>c:<GetGoogleCertsFromJson>b__16_0 due to: Could not load file or assembly 'Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. assembly:Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed type:<unknown type> member:(null) signature:<none>

    2-
    Unloading broken assembly Packages/com.unity.localization/Editor/Plugins/Google/Lib/Google.Apis.Auth.1.45.0/Google.Apis.Auth.dll, this assembly can cause crashes in the runtime

    3-
    Unloading broken assembly Packages/com.unity.localization/Editor/Plugins/Google/Lib/Google.Apis.Core.1.45.0/Google.Apis.Core.dll, this assembly can cause crashes in the runtime

    -----
    I checked the packages-lock.json and found the below packages installed:
    I am not sure how to fix this problem, I never updated the newtonsoft json manually, so I am guessing that the Unity is using it, how should I proceed to fix this issue?


    "com.unity.localization": {
    "version": "0.7.1-preview",
    "depth": 0,
    "source": "registry",
    "dependencies": {
    "com.unity.addressables": "1.7.5",
    "com.unity.nuget.newtonsoft-json": "1.1.2"
    },
    "url": "https://packages.unity.com"
    },
    "com.unity.nuget.newtonsoft-json": {
    "version": "2.0.0-preview",
    "depth": 1,
    "source": "registry",
    "dependencies": {},
    "url": "https://packages.unity.com"
    },
     
  2. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,876
    hI,
    could you please file a bug report so we can look into it?
     
  3. Phuggo

    Phuggo

    Joined:
    Jun 22, 2013
    Posts:
    4
    Hi Carlosgrr,

    we updated to
    "com.unity.nuget.newtonsoft-json": "2.0.0"
    in the manifest.json
     
    AeOngDev, Upian and karl_jones like this.
  4. Carlosgrr

    Carlosgrr

    Joined:
    Jun 20, 2019
    Posts:
    8
    Hi Phuggo, thanks! Your solution work, I had to insert that line in the manifest.json like you said.