I’m getting an error after I imported a package to Unity,
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. (Assets/Plugins/Newtonsoft Json/Runtime/AOT/Newtonsoft.Json.dll)
I looked around for a solution, and people were saying it had to do with Unity Ads(which I don’t have) and another solution I found was to delete one of the Newtonsoft.Json.dll files, which, if I delete either or the app fails to build. I don’t even know how to get rid of the package that’s caused it, nor do I really want to, the issue started after I imported this package,
Is there any way to fix this?
Thanks.
Edit: The duplicate(that came with the above Unity package) seems to be coming from D:/VR-Chat/Library/PackageCache/com.unity.nuget.newtonsoft-json@2.0.0/Runtime/Newtonsoft.Json.dll)
I tried deleting this one as well, the whole package, just to see what would happen. It automatically reimports it.
As the error says, you have one too many. You need to remove one. Probably you should contact the readyplayer owners and inform them that including this 3rd-party package is in collision with other packages.
If I’m understanding you correctly, the readyplayer is an asset. If it’s true, you just need to remove the dll (Assets/Plugins/Newtonsoft Json/Runtime/AOT/Newtonsoft.Json.dll) from that. Please use caution, backup your project before you delete anything and/or use your version control system!
All in all, the goal is to have only one file per target platform.
I tried backing up this file and deleting it, in both packages. Either one causes an error that prevents building, i was able to build just fine before installing this asset…
Please help me how to resolve this problem,
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. (C:/Users/GAMEPLAY/Desktop/Train In Jungle/Library/PackageCache/com.unity.nuget.newtonsoft-json@2.0.0/Runtime/Newtonsoft.Json.dll)
hi there, i dont know if this solution will help you but it helped me, i rename one of the dlls that was causing me problems in one of the paths, something such as Newtonsoft_old.Json.dll
It’s rude in my opinion to hijack a thread over a month after it was posted and say “I’m having the same problem” without any further explanation, like look at the next guy’s question, at least he asked nicely. Btw, why necro my post from 4 months ago just to call me out for calling the guy rude? XD
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/UnityPackages/JsonNet/Newtonsoft.Json.dll)
I believe Newtonsoft.json.dll is now included in Unity, like version 2020.3.24f1 LTS, it’s broken a lot of peoples projects due to already being present. So much for the “LTS” logo meaning
More on this here: [Newtonsoft Json package | Page 2 - Unity Forum]( Newtonsoft Json package page-2)
Hello i have the same problem, i tried deleting the Newton package but it keeps coming back by itself and keeps giving the same error message and i have to go into safemode.