Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Kolichikov · Jun 19, 2021 at 01:46 AM · editorerror messagecompile

Unity duplicate Newtonsoft dll issue with package cache

Getting the following error: "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. (/Library/PackageCache/com.unity.nuget.newtonsoft-json@2.0.0/Runtime/Newtonsoft.Json.dll)"


I have a specific version of Newtonsoft.json.dll that I'm using in my project, which isn't the one in the cache. I have no idea why that one is there, but I would like to get rid of it.


Things I've tried: Deleting the folder from PackageCache. This didn't work. Unity puts it back, even though I don't want it. Looking for it in package manager -> I couldn't find a reference to Newtonsoft anywhere. Removing my version -> as expected, everything breaks because I'm depending on that exact version being there.


This was not an issue in a 2021.1.5..something, I forget what's on my other computer. I'm currently importing this project into 2021.1.12f1.

It looks like something changed, and newtonsoft is required somewhere in the Unity internal piping, as I'm also getting this warning

 The package cache was invalidated and rebuilt because the following immutable asset(s) were unexpectedly altered:
   Packages/com.unity.nuget.newtonsoft-json/Tests/Editor
   Packages/com.unity.nuget.newtonsoft-json/README.md
   Packages/com.unity.nuget.newtonsoft-json/Runtime
   Packages/com.unity.nuget.newtonsoft-json/CHANGELOG.md
   Packages/com.unity.nuget.newtonsoft-json/Tests/Editor/Unity.Nuget.NewtonsoftJson.EditorTests.asmdef
   Packages/com.unity.nuget.newtonsoft-json/LICENSE.md
   Packages/com.unity.nuget.newtonsoft-json/Runtime/Newtonsoft.Json.dll

And this error:

 Assembly 'Library/ScriptAssemblies/Unity.PlasticSCM.Editor.dll' will not be loaded due to errors:
 Reference has errors 'unityplastic'.




Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Castillo4852 · Jun 26, 2021 at 06:32 AM 0
Share

If i am removing the Newtonsoft Json dlls from my assets folder then time i open the project unity will re-add that and repeat the issue. the worst is that you can't refference used newtonsoft assembly, because it's in package cache, to create some internal "map" and will bork on duplicate DLL names.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Tom-Red · Jun 24, 2021 at 10:00 AM

I just got this in my project as well, and it certainly looks like some version of Newtonsoft.Json was added to Unity in the 1.5.7 collab version. Very odd. My solution; since everything was broken in my project after updating was reverting the manifest.meta and whatever other editor-related changes first, then reverting the deletion of the Newtonsoft.Json.dll

Very strange that Unity's changelog for 1.5.7 collaboration doesn't state any changes to this at all. https://docs.unity3d.com/Packages/com.unity.collab-proxy@1.5/changelog/CHANGELOG.html

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

165 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Do anyone know this error message? 2 Answers

Editor Compiling New Changes 2 Answers

Do anyone know this error message? 0 Answers

Temp Project Folder In Ramdisk Error 0 Answers

Too many errors in the IDE (even for a fresh project), but editor doesn't throw any errors! 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges