Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Question nuget.newtonsoft-json conflict

Discussion in 'Editor & General Support' started by zzap65, Mar 30, 2023.

  1. zzap65

    zzap65

    Joined:
    Aug 11, 2021
    Posts:
    4
    hello

    I upgraded to 2021.3.21f1 recently
    after about a week I started receiving the following errors

    GUID [14f21d7a1e53a8c4e87b25526a7eb63c] for asset 'Packages/com.unity.nuget.newtonsoft-json/Runtime/AOT' conflicts with:
    'Assets/JsonDotNet/Assemblies/AOT' (current owner)
    We can't assign a new GUID because the asset is in an immutable folder. The asset will be ignored.

    Any suggestions how to fix please?
     
  2. CodeRonnie

    CodeRonnie

    Joined:
    Oct 2, 2015
    Posts:
    531
    The assembly that is under the "Assets/JsonDotNet/" directory should be removed from your project. The one under the "Packages/" directory takes precedent. All modules that depend on Json.NET should reference the one under "Packages/". See my post here for more details.