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.

Xamarin Forms 3.6 issue

See original GitHub issue

Description

Can not build anymore on Bitrise with Xamarin Forms 3.6

I see XF 3.6 has a breaking change related to this PR, and there’s been some previous discussion. https://github.com/xamarin/Xamarin.Forms/pull/5398 “[Android] Remove changes to IVisualElementRenderer so it remains backwards compatible”

Any guidance on this? Thanks.

Steps to Reproduce

Build failure when updating to XF 3.6 from 3.5

Expected Behavior

Build to pass

Actual Behavior

Build faiils

Basic Information

  • Version with issue: latest stable and also latest pre release are both not working
  • Last known good version: latest stable with XF 3.5
  • Platform: Android

Reproduction Link / Code

/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(2129,5): error MSB4018: The "LinkAssemblies" task failed unexpectedly. [/Users/vagrant/git/src/MyApp.Android/MyApp.Android.csproj]
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(2129,5): error MSB4018: 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>) [/Users/vagrant/git/src/MyApp.Android/MyApp.Android.csproj]
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(2129,5): error MSB4018:   at Mono.Linker.Steps.MarkStep.HandleUnresolvedMethod (Mono.Cecil.MethodReference reference) [0x00013] in <78f051a6e2064f849cc3ee585300af39>:0  [/Users/vagrant/git/src/MyApp.Android/MyApp.Android.csproj]
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(2129,5): error MSB4018:   at Mono.Linker.Steps.MarkStep.MarkMethod (Mono.Cecil.MethodReference reference) [0x0004a] in <78f051a6e2064f849cc3ee585300af39>:0  [/Users/vagrant/git/src/MyApp.Android/MyApp.Android.csproj]
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(2129,5): error MSB4018:   at Mono.Linker.Steps.MarkStep.ProcessMethod (Mono.Cecil.MethodDefinition method) [0x000d3] in <78f051a6e2064f849cc3ee585300af39>:0  [/Users/vagrant/git/src/MyApp.Android/MyApp.Android.csproj]
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(2129,5): error MSB4018:   at Mono.Linker.Steps.MarkStep.ProcessQueue () [0x0001b] in <78f051a6e2064f849cc3ee585300af39>:0  [/Users/vagrant/git/src/MyApp.Android/MyApp.Android.csproj]
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(2129,5): error MSB4018:    --- End of inner exception stack trace --- [/Users/vagrant/git/src/MyApp.Android/MyApp.Android.csproj]
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(2129,5): error MSB4018:   at Mono.Linker.Steps.MarkStep.ProcessQueue () [0x00047] in <78f051a6e2064f849cc3ee585300af39>:0  [/Users/vagrant/git/src/MyApp.Android/MyApp.Android.csproj]
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(2129,5): error MSB4018:   at Mono.Linker.Steps.MarkStep.ProcessPrimaryQueue () [0x0000a] in <78f051a6e2064f849cc3ee585300af39>:0  [/Users/vagrant/git/src/MyApp.Android/MyApp.Android.csproj]
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(2129,5): error MSB4018:   at Mono.Linker.Steps.MarkStep.Process () [0x00102] in <78f051a6e2064f849cc3ee585300af39>:0  [/Users/vagrant/git/src/MyApp.Android/MyApp.Android.csproj]
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(2129,5): error MSB4018:   at Mono.Linker.Steps.MarkStep.Process (Mono.Linker.LinkContext context) [0x0000d] in <78f051a6e2064f849cc3ee585300af39>:0  [/Users/vagrant/git/src/MyApp.Android/MyApp.Android.csproj]
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(2129,5): error MSB4018:   at MonoDroid.Tuner.MonoDroidMarkStep.Process (Mono.Linker.LinkContext context) [0x0000b] in <78f051a6e2064f849cc3ee585300af39>:0  [/Users/vagrant/git/src/MyApp.Android/MyApp.Android.csproj]
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(2129,5): error MSB4018:   at Mono.Linker.Pipeline.Process (Mono.Linker.LinkContext context) [0x0001c] in <78f051a6e2064f849cc3ee585300af39>:0  [/Users/vagrant/git/src/MyApp.Android/MyApp.Android.csproj]
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(2129,5): error MSB4018:   at MonoDroid.Tuner.Linker.Run (Mono.Linker.Pipeline pipeline, Mono.Linker.LinkContext context) [0x00000] in <78f051a6e2064f849cc3ee585300af39>:0  [/Users/vagrant/git/src/MyApp.Android/MyApp.Android.csproj]
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(2129,5): error MSB4018:   at MonoDroid.Tuner.Linker.Process (MonoDroid.Tuner.LinkerOptions options, Mono.Linker.ILogger logger, Mono.Linker.LinkContext& context) [0x00071] in <78f051a6e2064f849cc3ee585300af39>:0  [/Users/vagrant/git/src/MyApp.Android/MyApp.Android.csproj]
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(2129,5): error MSB4018:   at Xamarin.Android.Tasks.LinkAssemblies.Execute (Java.Interop.Tools.Cecil.DirectoryAssemblyResolver res) [0x002d4] in <78f051a6e2064f849cc3ee585300af39>:0  [/Users/vagrant/git/src/MyApp.Android/MyApp.Android.csproj]
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(2129,5): error MSB4018:   at Xamarin.Android.Tasks.LinkAssemblies.Execute () [0x0021f] in <78f051a6e2064f849cc3ee585300af39>:0  [/Users/vagrant/git/src/MyApp.Android/MyApp.Android.csproj]
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(2129,5): error MSB4018:   at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute () [0x00029] in <7b80049ba212460da3a78bdfcc799ef4>:0  [/Users/vagrant/git/src/MyApp.Android/MyApp.Android.csproj]
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(2129,5): error MSB4018:   at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask (Microsoft.Build.BackEnd.ITaskExecutionHost taskExecutionHost, Microsoft.Build.BackEnd.Logging.TaskLoggingContext taskLoggingContext, Microsoft.Build.BackEnd.TaskHost taskHost, Microsoft.Build.BackEnd.ItemBucket bucket, Microsoft.Build.BackEnd.TaskExecutionMode howToExecuteTask) [0x001f6] in <7b80049ba212460da3a78bdfcc799ef4>:0  [/Users/vagrant/git/src/MyApp.Android/MyApp.Android.csproj]

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:6
  • Comments:14 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
kicsiedecommented, Mar 6, 2019

FYI v2.4.3.840 seems to be working

2reactions
daniel-luberdacommented, Mar 12, 2019

Please check 2.4.5.870-pre. Cheers.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Xamarin.Forms 3.6.0.220655 (3.6.0) Release Notes
Release notes detailing new features, improvements, and issues fixed in Xamarin.Forms 3.6.0.220655 (3.6.0)
Read more >
Xamarin.Forms 3.6.0.709228 (3.6.0 Service Release 5) ...
Release notes detailing new features, improvements, and issues fixed in Xamarin.Forms 3.6.0.709228 (3.6.0 Service Release 5)
Read more >
xamarin forms previewer required Xamarin.Forms 3.6 or ...
when opening the previewer, the error stating i need forms or higher comes up. I closed VS, reopened the project and the xaml...
Read more >
Debugging Xamarin Forms 3.6 and up | Asp.Net Core, Angular ...
When your app fails, is it your app, or is there a bug in Xamarin Forms? How to know? In this post I'll...
Read more >
Xamarin.Forms install error message runaround
I created a new Xamarin.Forms project and I am trying to upgrade the Xamarin.Forms Nuget package from 3.6 to v4.3. When I try...
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