Unity Issue Tracker - Newtonsoft Mono.Linker.LinkerFatalErrorException exception is thrown when building Android player
Closed
UUM-74101
Newtonsoft Mono.Linker.LinkerFatalErrorException exception is thrown when building Android player
Unity: Scripting Buildtime
Won't Fix
6.5.X
6.4.X
6.3.X
6.2.X
6.1.X
6.0.X
2022.3.X
We will only land in the newest version
Reproduction steps:
1. Open the attached “BugRepro” project
2. Open the Build Settings window (File > Build Settings)
3. Make sure “Android” is the selected platform
4. Build the project
5. Observe the Console window
Expected result: The build finishes successfully
Actual result: An exception is thrown Mono.Linker.LinkerFatalErrorException: C:\...\Assets\TestNewtonsoft.cs(11,9): error IL1005: .TestNewtonsoft.Start(): Error processing method '.TestNewtonsoft.Start()' in assembly 'Assembly-CSharp.dll'