Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

项目启报错,提示The type 'JObject' exists in both 'Newtonsoft.Json‘ #1

Open
JiinJie opened this issue May 14, 2023 · 2 comments

Comments

@JiinJie
Copy link

JiinJie commented May 14, 2023

大佬请问下项目下载后启动报错,根据提示已经把重复文件删除了。重新编译后仍然报错,看起来像是组件重复引用的问题,请问下如何修改,让项目可以跑起来呢?
错误提示如下:
Library\PackageCache\[email protected]\Runtime\Core.Internal\Registry\DependencyTreeExtensions.cs(74,24): error CS0433: The type 'JObject' exists in both 'Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' and 'Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'

image

unity 版本:2021.3.20f1 LTS版本

@Finb
Copy link
Owner

Finb commented May 14, 2023

哥们,这问题我也不能帮你, 我Unity还没入门,不过看起来就是重复引用了Newtonsoft.Json? 你在Package找找。
这个项目是我自己瞎折腾的,虽然实现了一些功能,但我都忘光了,我打算等过一段时间重新学习Unity,再来做一个MM。

@JiinJie
Copy link
Author

JiinJie commented May 14, 2023

感觉像是你写Newtonsoft.Json.dll这个组件的时候有多个版本,没有删除旧版本导致的,我已经删除了多余重复文件,但是build的时候仍然报错。可能和你内部逻辑代码有关。我接触unity也没有多久,对于这个问题暂时没啥头绪,只能再看看吧是😂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants