125  
查询码:00000714
unity2018使用Json.NET,打包后运行存在json报错问题
作者: 王元超 于 2020年09月17日 发布在分类 / BIM组 / BIM视图 下,并于 2020年09月17日 编辑

现象:

Editor中运行正常,打包后在log中会显示

PlatformNotSupportedException: Operation is not supported on this platform.

Newtonsoft.Json

等字样。

解决方法:

Player SettignsApi Compatibility Level设置为.NET 4.x,然后修复使用旧.net的API造成的报错之后,再打包就可以正常使用。

粘贴图片




 推荐知识

 历史版本

修改日期 修改人 备注
2020-09-17 15:12:16[当前版本] 王元超 创建版本

 附件

附件类型

PNGPNG

知识分享平台 -V 4.8.7 -wcp