MicrosoftDocs / mslearn-mr-adt-in-unity

This is a repo that holds the sample code for the Mixed Reality and Azure Digital Twins in Unity Learn Path
Creative Commons Attribution 4.0 International
65 stars 55 forks source link

Unity Error: Multiple precompiled assemblies with the same name Newtonsoft.Json.dll #8

Closed craigcook04 closed 3 years ago

craigcook04 commented 3 years ago

Thank you Adam and Brent for this session at Build, great presentation and really interesting topic!

I managed to follow along with the tutorial up to the point of creating my Unity project from the folder 'Unity-Project' cloned from this repo. I get the following error when loading my Unity project in version 2020.3.11f1:

"Multiple precompiled assemblies with the same name Newtonsoft.Json.dll included or the current platform. Only one assembly with the same name is allowed per platform."

It seems as though this file is located in 'Library\PackageCache\com.unity.nuget.newtonsoft-json@2.0.0\Runtime' and 'Assets\Plugins'.

Any assistance would be much appreciated!

arfontai commented 3 years ago

Hi craigcook04,

I experienced the same issue. Just remove manually one of the two references while you are in Unity Safe Mode. It solved the issue on my side.