"Link Assemblies" task failed unexpectedly issue while App build in Release Mode Xamarin Android
<p>Getting the following issue while trying to build App Release Mode in Xamarin Android.
Why is it appearing and how can it be resolved?</p>

<blockquote>
  <p>Severity  Code    Description Project File    Line    Source  Suppression State Error     </p>
  
  <p>The "Link Assemblies" task failed unexpectedly.</p>
  
  <p>Xamarin.Android.XamarinAndroidException: error XA2006: Reference to
  metadata item 'System.Void
  Android.Widget.TextView::SetTextAppearance(System.Int32)' (defined in
  'Xamarin.Forms.Platform.Android, Version=2.0.0.0, Culture=neutral,
  PublicKeyToken=null') from 'Xamarin.Forms.Platform.Android,
  Version=2.0.0.0, Culture=neutral, PublicKeyToken=null' could not be
  resolved. ---> Mono.Cecil.ResolutionException: Failed to resolve
  System.Void Android.Widget.TextView::SetTextAppearance(System.Int32) </p>
  
  <p>at Mono.Linker.Steps.MarkStep.MarkMethod(MethodReference reference)<br>
  at Mono.Linker.Steps.MarkStep.MarkInstruction(Instruction instruction)
  at Mono.Linker.Steps.MarkStep.MarkMethodBody(MethodBody body)<br>
  at Mono.Linker.Steps.MarkStep.ProcessMethod(MethodDefinition method)<br>
  at Mono.Linker.Steps.MarkStep.ProcessQueue()<br>
    at Mono.Linker.Steps.MarkStep.Process()<br>
  at Mono.Linker.Steps.MarkStep.Process(LinkContext context)<br>
    at Mono.Linker.Pipeline.Process(LinkContext context)<br>
    at MonoDroid.Tuner.Linker.Process(LinkerOptions options, LinkContext&amp;
  context)<br>
    at Xamarin.Android.Tasks.LinkAssemblies.Execute()    </p>
  
  <p>---End of inner exception stack trace --- </p>
  
  <p>at Xamarin.Android.Diagnostic.Error(Int32 code, Exception innerException,
  String message, Object[] args)<br>
    at Xamarin.Android.Tasks.LinkAssemblies.Execute()<br>
    at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
  at
  Microsoft.Build.BackEnd.TaskBuilder.d__26.MoveNext() MyApp.Droid         Build</p>
</blockquote>

<p><a href="https://i.stack.imgur.com/IE3Gn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IE3Gn.png" alt="enter image description here"></a></p>