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.

2.4.4 Linker Error (Failed to resolve System.Void Xamarin.Forms.Platform.Android.IVisualElementRenderer::add_LayoutChange)

See original GitHub issue

Description

After updating from 2.4.3 to 2.4.4 or 2.5-preview, on building a Xamarin.Forms (v3.3.0.967583) project for Android, the linker throws an exception.

Expected Behavior

It should just build fine, like in version 2.4.3.

Actual Behavior

Error The "LinkAssemblies" task failed unexpectedly.
Mono.Linker.MarkException: Error processing method: 'System.Void FFImageLoading.Forms.Platform.CachedImageFastRenderer::Xamarin.Forms.Platform.Android.IVisualElementRenderer.add_LayoutChange(System.EventHandler`1<Android.Views.View/LayoutChangeEventArgs>)' in assembly: 'FFImageLoading.Forms.Platform.dll' ---> Mono.Cecil.ResolutionException: Failed to resolve System.Void Xamarin.Forms.Platform.Android.IVisualElementRenderer::add_LayoutChange(System.EventHandler`1<Android.Views.View/LayoutChangeEventArgs>)
   at Mono.Linker.Steps.MarkStep.HandleUnresolvedMethod(MethodReference reference)
   at Mono.Linker.Steps.MarkStep.MarkMethod(MethodReference reference)
   at Mono.Linker.Steps.MarkStep.ProcessMethod(MethodDefinition method)
   at Mono.Linker.Steps.MarkStep.ProcessQueue()
   --- End of inner exception stack trace ---
   at Mono.Linker.Steps.MarkStep.ProcessQueue()
   at Mono.Linker.Steps.MarkStep.ProcessPrimaryQueue()
   at Mono.Linker.Steps.MarkStep.Process()
   at MonoDroid.Tuner.MonoDroidMarkStep.Process(LinkContext context)
   at Mono.Linker.Pipeline.Process(LinkContext context)
   at MonoDroid.Tuner.Linker.Process(LinkerOptions options, ILogger logger, LinkContext& context)
   at Xamarin.Android.Tasks.LinkAssemblies.Execute(DirectoryAssemblyResolver res)
   at Xamarin.Android.Tasks.LinkAssemblies.Execute()
   at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
   at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext()	Rotarex.DIMES.Droid		

Basic Information

  • Version with issue: 2.4.4 or newer
  • Last known good version: 2.4.3
  • Platform: Xamarin.Forms / Android (v3.3.0.967583)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:14
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
daniel-luberdacommented, Mar 12, 2019

It’s fixed in newest prerelease.

2reactions
omarhimadacommented, Jan 31, 2019

Downgrading to 2.4.3.840 worked for me as well, I was using 2.4.4.859 and got the same error as OP.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Xamarin.Forms Getting Mono.Linker.MarkException: Error ...
In my case, this error occured because the Android Project had different version of the Xamarin.Forms NuGet package installed. When I installed ...
Read more >
LIinker error on release mode on upgrading to Xamarin. ...
Upgrade Xamarin forms from 4.x to Xamarin.Forms 5.0.0.1931 and getting below linker error on release mode. Linking is set to Sdk Assemblies ...
Read more >
Mono.Linker.MarkException Xamarin Forms version :5.0. ...
ERROR :XALNK7000: This error occurs only in Android and in tha phase of building. I have tried many ways to solve it,by updating...
Read more >
Unable to release build Xamarin Forms Android
Linker.MarkException: Error processing method: 'System.Void TeeChart.PCL. ... Failed to resolve System.Int32 Xamarin.Forms.Platform.Android.
Read more >
LinkAssemblies errors after upgrade to Xamarin.Forms v3.0
Error The "LinkAssemblies" task failed unexpectedly. Mono.Linker.MarkException: Error processing method: 'System.Void Telerik.XamarinForms.
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