gindemit / unity-rlottie

Unity library that plays Lottie Animation to Texture2D
MIT License
164 stars 26 forks source link

Multiple precompiled assemblies with the same name System.Runtime.CompilerServices.Unsafe.dll included on the current platform. Only one assembly with the same name is allowed per platform. #14

Open Rica02 opened 1 year ago

Rica02 commented 1 year ago

Getting this error after installing unity-rlottie version 0.2.2:

Multiple precompiled assemblies with the same name System.Runtime.CompilerServices.Unsafe.dll included on the current platform. Only one assembly with the same name is allowed per platform. (Assets/Packages/System.Runtime.CompilerServices.Unsafe.4.5.3/lib/netstandard2.0/System.Runtime.CompilerServices.Unsafe.dll)

Multiple precompiled assemblies with the same name System.Runtime.CompilerServices.Unsafe.dll included on the current platform. Only one assembly with the same name is allowed per platform. (/Volumes/SamsungT7SSD/MyProject/Library/PackageCache/com.gindemit.rlottie@82e20a0008/ExternalDlls/System.Runtime.CompilerServices.Unsafe.dll)

Deleting one of the System.Runtime.CompilerServices.Unsafe.dll files did not work, any advice?

Unity version: 2021.3.19f1

gindemit commented 1 year ago

Hello @Rica02, thank you for your report!

Could you please provide some details about your installation process for the Assets/Packages/System.Runtime.CompilerServices.Unsafe.4.5.3 package? This will help me to replicate the issue on my end.

Additionally, you mentioned attempting to delete the Assets/Packages/System.Runtime.CompilerServices.Unsafe.4.5.3 package. I'm curious - once the package was deleted, did you encounter any subsequent errors?

Rica02 commented 1 year ago

We believe it's from Microsoft's NuGet library (https://imgur.com/a/kKmKrOA). Deleting its Unsafe package caused compiling issues with the library we're using from it

gindemit commented 1 year ago

Hello @Rica02, thanks for the infos! I think I will remove this dll in the next release from the package. The projects that does not have the dll awailable will need to install it separately.