Compilation error when trying to install enjin SDK on Unity

Hi guys, hope someone know the answer to this.

I followed the lecture and installed the provided SDK from

https://ivanontech-academy.s3.eu-north-1.amazonaws.com/Enjin-course/EnjinRefactoredSDK-academy.unitypackage

on Unity. But it produced some errors like below instead

Multiple precompiled assemblies with the same name Newtonsoft.Json.dll included on the current platform. Only one assembly with the same name is allowed per platform. (J:/Unity/MoralisAcademy/OurAwesomeGame/Library/PackageCache/[email protected]/Runtime/Newtonsoft.Json.dll)

Multiple precompiled assemblies with the same name Newtonsoft.Json.dll included on the current platform. Only one assembly with the same name is allowed per platform. (Assets/Enjin/SDK/Scripts/Utilities/JsonDotNet/Assemblies/Standalone/Newtonsoft.Json.dll)

I’m running on windows machine and Unity 2021.3.5f1.

Many thanks in advance.

Could you please point me on which lesson you are following until reaching the error?

Carlos Z

Hi @thecil,
It’s Enjin Blockchain development 101. At ‘Installing Enjin SDK’ lecture.

Stan

I did not have any issue importing the package with version 2020.3.33f1, maybe the file you download was corrupted, try to download it again, also please sent an image of the error if it appears again.

Carlos Z

Hi @thecil,

Thanks for looking into it.

It worked on 2020.3.33f1, but not on 2021.3.5f1.

On 2021.3.5f1, it turned out I needed to remove Assets/Enjin/SDK/Scripts/Utilities/JsonDotNet/Assemblies/Standalone/Newtonsoft.Json.dll

And it compiled :slight_smile:

1 Like