question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

when I compile my unity player, it causes errors:PlatformNotSupportedException: Operation is not supported on this platform

See original GitHub issue

Source/destination types

// Put the types you are serializing or deserializing here

Source/destination JSON

{"message":"Place your serialized or deserialized JSON here"}

Expected behavior

Actual behavior

Steps to reproduce

// Your calls to Newtonsoft.Json here

Newtonsoft.Json works well in Unity Editor, but it didn’t work when I compile to Unity player, what should I do? Error_2019_4_15_17h_17.txt

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:5
  • Comments:11

github_iconTop GitHub Comments

99reactions
superzscycommented, Jun 15, 2019

I encountered the same issue, but when i changed the “API Compatibility Level” to .Net 4.x, problem solved.

0reactions
cdtrangcommented, Apr 30, 2020

I encountered the same issue, but when i changed the “API Compatibility Level” to .Net 4.x, problem solved.

Changing “API Compatibility Level” in Unity configuration to .NET 4.x solved my issue, too. Thank you @superzscy

Read more comments on GitHub >

github_iconTop Results From Across the Web

Operation is not supported on this Platform
Hello, I am using Unity 2020.3.8f1, Windows, and NetStandard 2.0. I am attempting to integrate https://www.nuget.org/packages/MySql.
Read more >
Operation is not supported on this platform" in Unity ...
In this case the BufferManager class is not available. PlatformNotSupportedException: Operation is not supported on this platform.
Read more >
Operation is not supported on this platform. - Issue Tracker
Unity currently uses .Net Framework 4.7.x in editor and various other versions in playmode and builds depending on platform runtime and runtime ...
Read more >
Troubleshooting - Unity's Package Manager
This operation resets all packages in your project. This might not fix the source of the problem, but it can help you figure...
Read more >
My game does work in Unity,does not after build and run!
I did everything as the video tutorial,but after i build and run it through my desktop,it runs but i cant interact.I cant press...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found