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
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
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.