0 votes
by (590 points)

XRSDK内有 LitJson.dll文件,而且我手工也添加了引用,还是报错,有人解决了么?非常感谢enter image description here

enter image description here

2 Answers

0 votes
by (1.1k points)

我是这样解决的:

1.关闭项目,删除了项目目录下除了Assets、Packages、ProjectSettings三个文件夹之外的所有临时文件
2.修改Packages文件夹下的packages-lock.json,将这些删除:

"com.unity.xr.picoxr": {
"version": "file:../UnityXRv2.0.2B41",
"depth": 0,
"source": "local",
"dependencies": {
"com.unity.xr.management": "3.2.16",
"com.unity.ugui": "1.0.0",
"com.unity.subsystemregistration": "1.0.6",
"com.unity.xr.interaction.toolkit": "0.9.4-preview"
}
},

3.重新打开项目、重新导入SDK
4.切换回安卓平台、勾选PicoXR

应该就不会报这个错了

0 votes
by (340 points)
edited by

我也遇到了这个问题,我猜测主要原因是因为unity把LitJson.dll这个文件识别成了安卓平台的,当时我是这样解决的,把sdk文件中的\Runtime\Android\LitJson.dll路径下面的文件移动到\Runtime目录下面,反正不要放在Android路径下面就行,应该就可以了。https://devanswers.pico-interactive.com/index.php?qa=1546

1.5k Questions

1.9k Answers

2.5k Comments

1.1k Developers

If you have question about this website, please click 'Send Feedback' button at the bottom left side of the homepage.
...