Search Issue Tracker
Won't Fix
Votes
1
Found in [Package]
1.2.1
Issue ID
LOC-683
Regression
No
Localization package duplicates JSON dependency
Reproduction steps:
1. Create a new project
2. In the Package Manager click the plus icon and press "Add package from git URL..."
3. Add packages "https://github.com/jilleJr/Newtonsoft.Json-for-Unity.git#upm" and "com.unity.localization"
Expected result: No errors are thrown
Actual result: This error is thrown: "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."
Reproducible with: 1.0.0 (2019.4.36f1, 2020.3.32f1), 1.2.1 (2019.4.36f1, 2020.3.32f1, 2021.2.17f1, 2022.1.0b14, 2022.2.0a8), 1.3.2(2021.3.9f)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- HDRP 6-way VFX Shader is lit incorrectly when World coordinates are used
- 2D Sprite Renderer in front is affected by Sprites in the background when using Sorting Layers and a Shadow Caster 2D with Self Shadow
- Modifying UI Prefab child's Height only confirms the first 1 or 2 digits when the Scene is newly opened or the Prefab is newly created
- ProfilingSampler.Get() returns null and makes the Player only render black when building a Release Build
- Search text field visual controls for the Path binding in an Input Actions Asset is misaligned
Resolution Note:
This is not a localization package bug.
This is caused by including the Newtonsoft library twice.
You should switch to using the recommended dependency package "com.unity.nuget.newtonsoft-json" or you will have duplicate dependencies in the project.
If you must use the third-party version then download it and include it as a local copy in the Packages folder so that it is not immutable and the GUIDs can be regenerated.