2.4.4 Linker Error (Failed to resolve System.Void Xamarin.Forms.Platform.Android.IVisualElementRenderer::add_LayoutChange)
See original GitHub issueDescription
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:
- Created 5 years ago
- Reactions:14
- Comments:10 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It’s fixed in newest prerelease.
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.