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

Newtonsoft Json error after upgrading to 0.8.1 from 0.6

Discussion in 'Localization Tools' started by unace, Aug 31, 2020.

  1. unace

    unace

    Joined:
    Oct 13, 2014
    Posts:
    23
    I got Newtonsoft Json error after upgrading to 0.8.1 from 0.6. Could you help me resolve this error?

    GUID [a8a90c35b04530c4f971aaef6fdf3612] for asset 'Packages/com.unity.nuget.newtonsoft-json/link.xml' conflicts with:
    'Packages/jillejr.newtonsoft.json-for-unity/link.xml' (current owner)
    We can't assign a new GUID because the asset is in an immutable folder. The asset will be ignored.
    GUID [6c694cfdc33ae264fb33e0cd1c7e25cf] for asset 'Packages/com.unity.nuget.newtonsoft-json/Runtime/AOT/Newtonsoft.Json.dll' conflicts with:
    'Packages/jillejr.newtonsoft.json-for-unity/Plugins/Newtonsoft.Json AOT/Newtonsoft.Json.dll' (current owner)
    We can't assign a new GUID because the asset is in an immutable folder. The asset will be ignored.
    GUID [8c4bfcb5b17948478ccb955bccff9652] for asset 'Packages/com.unity.nuget.newtonsoft-json/Runtime/Newtonsoft.Json.dll' conflicts with:
    'Packages/jillejr.newtonsoft.json-for-unity/Plugins/Newtonsoft.Json Editor/Newtonsoft.Json.dll' (current owner)
    We can't assign a new GUID because the asset is in an immutable folder. The asset will be ignored.
    GUID [e8a2e6265da3549468b4ccef3eb81e01] for asset 'Packages/com.unity.nuget.newtonsoft-json/Runtime/Portable/Newtonsoft.Json.dll' conflicts with:
    'Packages/jillejr.newtonsoft.json-for-unity/Plugins/Newtonsoft.Json Portable/Newtonsoft.Json.dll' (current owner)
    We can't assign a new GUID because the asset is in an immutable folder. The asset will be ignored.

    upload_2020-8-30_17-29-27.png

    My packages/manifest.json

    {
    "dependencies": {
    "com.google.external-dependency-manager": "1.2.157",
    "com.google.firebase.analytics": "6.15.2",
    "com.google.firebase.auth": "6.15.2",
    "com.google.firebase.database": "6.15.2",
    "com.unity.2d.sprite": "1.0.0",
    "com.unity.cinemachine": "2.6.1",
    "com.unity.collab-proxy": "1.2.16",
    "com.unity.device-simulator": "2.2.3-preview",
    "com.unity.ide.rider": "1.1.4",
    "com.unity.ide.vscode": "1.2.1",
    "com.unity.localization": "0.8.1-preview",
    "com.unity.mobile.android-logcat": "1.1.1",
    "com.unity.postprocessing": "2.3.0",
    "com.unity.test-framework": "1.1.16",
    "com.unity.textmeshpro": "2.1.1",
    "com.unity.timeline": "1.2.16",
    "com.unity.ugui": "1.0.0",
    "jillejr.newtonsoft.json-for-unity": "12.0.301",
    "com.unity.modules.ai": "1.0.0",
    "com.unity.modules.androidjni": "1.0.0",
    "com.unity.modules.animation": "1.0.0",
    "com.unity.modules.assetbundle": "1.0.0",
    "com.unity.modules.audio": "1.0.0",
    "com.unity.modules.cloth": "1.0.0",
    "com.unity.modules.director": "1.0.0",
    "com.unity.modules.imageconversion": "1.0.0",
    "com.unity.modules.imgui": "1.0.0",
    "com.unity.modules.jsonserialize": "1.0.0",
    "com.unity.modules.particlesystem": "1.0.0",
    "com.unity.modules.physics": "1.0.0",
    "com.unity.modules.physics2d": "1.0.0",
    "com.unity.modules.screencapture": "1.0.0",
    "com.unity.modules.terrain": "1.0.0",
    "com.unity.modules.terrainphysics": "1.0.0",
    "com.unity.modules.tilemap": "1.0.0",
    "com.unity.modules.ui": "1.0.0",
    "com.unity.modules.uielements": "1.0.0",
    "com.unity.modules.umbra": "1.0.0",
    "com.unity.modules.unityanalytics": "1.0.0",
    "com.unity.modules.unitywebrequest": "1.0.0",
    "com.unity.modules.unitywebrequestassetbundle": "1.0.0",
    "com.unity.modules.unitywebrequestaudio": "1.0.0",
    "com.unity.modules.unitywebrequesttexture": "1.0.0",
    "com.unity.modules.unitywebrequestwww": "1.0.0",
    "com.unity.modules.vehicles": "1.0.0",
    "com.unity.modules.video": "1.0.0",
    "com.unity.modules.vr": "1.0.0",
    "com.unity.modules.wind": "1.0.0",
    "com.unity.modules.xr": "1.0.0"
    },
    "scopedRegistries": [
    {
    "name": "Game Package Registry by Google",
    "url": "https://unityregistry-pa.googleapis.com",
    "scopes": [
    "com.google"
    ]
    },
    {
    "name": "Packages from jillejr",
    "url": "https://npm.cloudsmith.io/jillejr/newtonsoft-json-for-unity/",
    "scopes": [
    "jillejr"
    ]
    }
    ]
    }

    This is my packages-lock.json

    {
    "dependencies": {
    "com.google.external-dependency-manager": {
    "version": "1.2.157",
    "depth": 0,
    "source": "registry",
    "dependencies": {},
    "url": "https://unityregistry-pa.googleapis.com"
    },
    "com.google.firebase.analytics": {
    "version": "6.15.2",
    "depth": 0,
    "source": "registry",
    "dependencies": {
    "com.google.firebase.app": "6.15.2"
    },
    "url": "https://unityregistry-pa.googleapis.com"
    },
    "com.google.firebase.app": {
    "version": "6.15.2",
    "depth": 1,
    "source": "registry",
    "dependencies": {
    "com.google.external-dependency-manager": "1.2.156"
    },
    "url": "https://unityregistry-pa.googleapis.com"
    },
    "com.google.firebase.auth": {
    "version": "6.15.2",
    "depth": 0,
    "source": "registry",
    "dependencies": {
    "com.google.firebase.app": "6.15.2"
    },
    "url": "https://unityregistry-pa.googleapis.com"
    },
    "com.google.firebase.database": {
    "version": "6.15.2",
    "depth": 0,
    "source": "registry",
    "dependencies": {
    "com.google.firebase.auth": "6.15.2"
    },
    "url": "https://unityregistry-pa.googleapis.com"
    },
    "com.unity.2d.sprite": {
    "version": "1.0.0",
    "depth": 0,
    "source": "builtin",
    "dependencies": {}
    },
    "com.unity.addressables": {
    "version": "1.7.5",
    "depth": 1,
    "source": "registry",
    "dependencies": {
    "com.unity.scriptablebuildpipeline": "1.5.10",
    "com.unity.modules.assetbundle": "1.0.0",
    "com.unity.modules.unitywebrequest": "1.0.0",
    "com.unity.modules.unitywebrequestassetbundle": "1.0.0"
    },
    "url": "https://packages.unity.com"
    },
    "com.unity.cinemachine": {
    "version": "2.6.1",
    "depth": 0,
    "source": "registry",
    "dependencies": {},
    "url": "https://packages.unity.com"
    },
    "com.unity.collab-proxy": {
    "version": "1.2.16",
    "depth": 0,
    "source": "registry",
    "dependencies": {},
    "url": "https://packages.unity.com"
    },
    "com.unity.device-simulator": {
    "version": "2.2.3-preview",
    "depth": 0,
    "source": "registry",
    "dependencies": {},
    "url": "https://packages.unity.com"
    },
    "com.unity.ext.nunit": {
    "version": "1.0.0",
    "depth": 1,
    "source": "registry",
    "dependencies": {},
    "url": "https://packages.unity.com"
    },
    "com.unity.ide.rider": {
    "version": "1.1.4",
    "depth": 0,
    "source": "registry",
    "dependencies": {
    "com.unity.test-framework": "1.1.1"
    },
    "url": "https://packages.unity.com"
    },
    "com.unity.ide.vscode": {
    "version": "1.2.1",
    "depth": 0,
    "source": "registry",
    "dependencies": {},
    "url": "https://packages.unity.com"
    },
    "com.unity.localization": {
    "version": "0.8.1-preview",
    "depth": 0,
    "source": "registry",
    "dependencies": {
    "com.unity.addressables": "1.7.5",
    "com.unity.nuget.newtonsoft-json": "2.0.0"
    },
    "url": "https://packages.unity.com"
    },
    "com.unity.mobile.android-logcat": {
    "version": "1.1.1",
    "depth": 0,
    "source": "registry",
    "dependencies": {},
    "url": "https://packages.unity.com"
    },
    "com.unity.nuget.newtonsoft-json": {
    "version": "2.0.0",
    "depth": 1,
    "source": "registry",
    "dependencies": {},
    "url": "https://packages.unity.com"
    },
    "com.unity.postprocessing": {
    "version": "2.3.0",
    "depth": 0,
    "source": "registry",
    "dependencies": {},
    "url": "https://packages.unity.com"
    },
    "com.unity.scriptablebuildpipeline": {
    "version": "1.5.10",
    "depth": 2,
    "source": "registry",
    "dependencies": {},
    "url": "https://packages.unity.com"
    },
    "com.unity.test-framework": {
    "version": "1.1.16",
    "depth": 0,
    "source": "registry",
    "dependencies": {
    "com.unity.ext.nunit": "1.0.0",
    "com.unity.modules.imgui": "1.0.0",
    "com.unity.modules.jsonserialize": "1.0.0"
    },
    "url": "https://packages.unity.com"
    },
    "com.unity.textmeshpro": {
    "version": "2.1.1",
    "depth": 0,
    "source": "registry",
    "dependencies": {
    "com.unity.ugui": "1.0.0"
    },
    "url": "https://packages.unity.com"
    },
    "com.unity.timeline": {
    "version": "1.2.16",
    "depth": 0,
    "source": "registry",
    "dependencies": {},
    "url": "https://packages.unity.com"
    },
    "com.unity.ugui": {
    "version": "1.0.0",
    "depth": 0,
    "source": "builtin",
    "dependencies": {
    "com.unity.modules.ui": "1.0.0",
    "com.unity.modules.imgui": "1.0.0"
    }
    },
    "jillejr.newtonsoft.json-for-unity": {
    "version": "12.0.301",
    "depth": 0,
    "source": "registry",
    "dependencies": {},
    "url": "https://npm.cloudsmith.io/jillejr/newtonsoft-json-for-unity"
    },
    "com.unity.modules.ai": {
    "version": "1.0.0",
    "depth": 0,
    "source": "builtin",
    "dependencies": {}
    },
    "com.unity.modules.androidjni": {
    "version": "1.0.0",
    "depth": 0,
    "source": "builtin",
    "dependencies": {}
    },
    "com.unity.modules.animation": {
    "version": "1.0.0",
    "depth": 0,
    "source": "builtin",
    "dependencies": {}
    },
    "com.unity.modules.assetbundle": {
    "version": "1.0.0",
    "depth": 0,
    "source": "builtin",
    "dependencies": {}
    },
    "com.unity.modules.audio": {
    "version": "1.0.0",
    "depth": 0,
    "source": "builtin",
    "dependencies": {}
    },
    "com.unity.modules.cloth": {
    "version": "1.0.0",
    "depth": 0,
    "source": "builtin",
    "dependencies": {
    "com.unity.modules.physics": "1.0.0"
    }
    },
    "com.unity.modules.director": {
    "version": "1.0.0",
    "depth": 0,
    "source": "builtin",
    "dependencies": {
    "com.unity.modules.audio": "1.0.0",
    "com.unity.modules.animation": "1.0.0"
    }
    },
    "com.unity.modules.imageconversion": {
    "version": "1.0.0",
    "depth": 0,
    "source": "builtin",
    "dependencies": {}
    },
    "com.unity.modules.imgui": {
    "version": "1.0.0",
    "depth": 0,
    "source": "builtin",
    "dependencies": {}
    },
    "com.unity.modules.jsonserialize": {
    "version": "1.0.0",
    "depth": 0,
    "source": "builtin",
    "dependencies": {}
    },
    "com.unity.modules.particlesystem": {
    "version": "1.0.0",
    "depth": 0,
    "source": "builtin",
    "dependencies": {}
    },
    "com.unity.modules.physics": {
    "version": "1.0.0",
    "depth": 0,
    "source": "builtin",
    "dependencies": {}
    },
    "com.unity.modules.physics2d": {
    "version": "1.0.0",
    "depth": 0,
    "source": "builtin",
    "dependencies": {}
    },
    "com.unity.modules.screencapture": {
    "version": "1.0.0",
    "depth": 0,
    "source": "builtin",
    "dependencies": {
    "com.unity.modules.imageconversion": "1.0.0"
    }
    },
    "com.unity.modules.subsystems": {
    "version": "1.0.0",
    "depth": 1,
    "source": "builtin",
    "dependencies": {
    "com.unity.modules.jsonserialize": "1.0.0"
    }
    },
    "com.unity.modules.terrain": {
    "version": "1.0.0",
    "depth": 0,
    "source": "builtin",
    "dependencies": {}
    },
    "com.unity.modules.terrainphysics": {
    "version": "1.0.0",
    "depth": 0,
    "source": "builtin",
    "dependencies": {
    "com.unity.modules.physics": "1.0.0",
    "com.unity.modules.terrain": "1.0.0"
    }
    },
    "com.unity.modules.tilemap": {
    "version": "1.0.0",
    "depth": 0,
    "source": "builtin",
    "dependencies": {
    "com.unity.modules.physics2d": "1.0.0"
    }
    },
    "com.unity.modules.ui": {
    "version": "1.0.0",
    "depth": 0,
    "source": "builtin",
    "dependencies": {}
    },
    "com.unity.modules.uielements": {
    "version": "1.0.0",
    "depth": 0,
    "source": "builtin",
    "dependencies": {
    "com.unity.modules.imgui": "1.0.0",
    "com.unity.modules.jsonserialize": "1.0.0"
    }
    },
    "com.unity.modules.umbra": {
    "version": "1.0.0",
    "depth": 0,
    "source": "builtin",
    "dependencies": {}
    },
    "com.unity.modules.unityanalytics": {
    "version": "1.0.0",
    "depth": 0,
    "source": "builtin",
    "dependencies": {
    "com.unity.modules.unitywebrequest": "1.0.0",
    "com.unity.modules.jsonserialize": "1.0.0"
    }
    },
    "com.unity.modules.unitywebrequest": {
    "version": "1.0.0",
    "depth": 0,
    "source": "builtin",
    "dependencies": {}
    },
    "com.unity.modules.unitywebrequestassetbundle": {
    "version": "1.0.0",
    "depth": 0,
    "source": "builtin",
    "dependencies": {
    "com.unity.modules.assetbundle": "1.0.0",
    "com.unity.modules.unitywebrequest": "1.0.0"
    }
    },
    "com.unity.modules.unitywebrequestaudio": {
    "version": "1.0.0",
    "depth": 0,
    "source": "builtin",
    "dependencies": {
    "com.unity.modules.unitywebrequest": "1.0.0",
    "com.unity.modules.audio": "1.0.0"
    }
    },
    "com.unity.modules.unitywebrequesttexture": {
    "version": "1.0.0",
    "depth": 0,
    "source": "builtin",
    "dependencies": {
    "com.unity.modules.unitywebrequest": "1.0.0",
    "com.unity.modules.imageconversion": "1.0.0"
    }
    },
    "com.unity.modules.unitywebrequestwww": {
    "version": "1.0.0",
    "depth": 0,
    "source": "builtin",
    "dependencies": {
    "com.unity.modules.unitywebrequest": "1.0.0",
    "com.unity.modules.unitywebrequestassetbundle": "1.0.0",
    "com.unity.modules.unitywebrequestaudio": "1.0.0",
    "com.unity.modules.audio": "1.0.0",
    "com.unity.modules.assetbundle": "1.0.0",
    "com.unity.modules.imageconversion": "1.0.0"
    }
    },
    "com.unity.modules.vehicles": {
    "version": "1.0.0",
    "depth": 0,
    "source": "builtin",
    "dependencies": {
    "com.unity.modules.physics": "1.0.0"
    }
    },
    "com.unity.modules.video": {
    "version": "1.0.0",
    "depth": 0,
    "source": "builtin",
    "dependencies": {
    "com.unity.modules.audio": "1.0.0",
    "com.unity.modules.ui": "1.0.0",
    "com.unity.modules.unitywebrequest": "1.0.0"
    }
    },
    "com.unity.modules.vr": {
    "version": "1.0.0",
    "depth": 0,
    "source": "builtin",
    "dependencies": {
    "com.unity.modules.jsonserialize": "1.0.0",
    "com.unity.modules.physics": "1.0.0",
    "com.unity.modules.xr": "1.0.0"
    }
    },
    "com.unity.modules.wind": {
    "version": "1.0.0",
    "depth": 0,
    "source": "builtin",
    "dependencies": {}
    },
    "com.unity.modules.xr": {
    "version": "1.0.0",
    "depth": 0,
    "source": "builtin",
    "dependencies": {
    "com.unity.modules.physics": "1.0.0",
    "com.unity.modules.jsonserialize": "1.0.0",
    "com.unity.modules.subsystems": "1.0.0"
    }
    }
    }
    }
     
    Didux likes this.
  2. unace

    unace

    Joined:
    Oct 13, 2014
    Posts:
    23
    I think "com.unity.nuget.newtonsoft-json" conflicts with "jillejr.newtonsoft.json-for-unity." The errors disappeared after removing jillejr.newtonsoft.json-for-unity.
    But Netwonsoft Json Unity Package document says "This is a package intended for internal Unity Development Projects and as such this package is not supported. Use at your own risk."
    Is there a way to use "jillejr.newtonsoft.json-for-unity" instead of "com.unity.nuget.newtonsoft-json"?
     
  3. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,412
    Yes it sounds like you have the same newtonsoft library.
    I'm not sure it's possible to have the same library twice. You could file a bug report so we could look into it. It should be safe for you to use the unity one.
    You won't be able to remove the unity one without modifying the package dependencies Which would mean customizing the package.
    I would say you are safe to continue using the Unity one. Are you using it in the editor and the player?
     
    Last edited: Aug 31, 2020
  4. unace

    unace

    Joined:
    Oct 13, 2014
    Posts:
    23
    Thanks for the reply! I am using it in the player. it's fine if I am safe to use it :)
     
    karl_jones likes this.