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

Package: Localization

-

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)

  1. 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.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.