We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Linking Error Using Xamarin.Forms v4.2.0.848062 and SfListView 17.3.0.17

Hi!

I'm facing an issue when selecting the option 'Sdk Assemblies Only' on the Android project:

The "LinkAssemblies" task failed unexpectedly.
Mono.Linker.MarkException: Error processing method: 'System.Boolean Syncfusion.ListView.XForms.Android.ExtendedScrollViewRenderer::OnInterceptTouchEvent(Android.Views.MotionEvent)' in assembly: 'Syncfusion.SfListView.XForms.Android.dll' ---> Mono.Cecil.ResolutionException: Failed to resolve System.Int32 Android.Support.V4.Widget.NestedScrollView::ComputeHorizontalScrollExtent()
   at Mono.Linker.Steps.MarkStep.HandleUnresolvedMethod(MethodReference reference)
   at Mono.Linker.Steps.MarkStep.MarkMethod(MethodReference reference)
   at Mono.Linker.Steps.MarkStep.MarkInstruction(Instruction instruction)
   at Mono.Linker.Steps.MarkStep.MarkMethodBody(MethodBody body)
   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 Mono.Linker.Steps.MarkStep.Process(LinkContext context)
   at MonoDroid.Tuner.MonoDroidMarkStep.Process(LinkContext context)
   at Mono.Linker.Pipeline.ProcessStep(LinkContext context, IStep step)
   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() MembersAPP.Android

-----------------------------------------------------------
Xamarin.Forms v4.2.0.848062 
SfListView 17.3.0.17

Thanks!



3 Replies

SR Sangeetha Raju Syncfusion Team October 18, 2019 02:17 PM UTC

Hi Kleverton, 
 
The mentioned issue occurs because of Xamarin.Forms dependency update in our SfListView control, we have upgraded Xamarin.Forms dependency version of SfListView to 3.6.0.344457 in our 17.2.0.46 version (2019 Volume 2 – SP1 release). For using this Syncfusion update or later versions, you must have to upgrade Xamarin.Forms dependency in your project to Xamarin.Forms 3.6.0.344457 or higher and also needs to set the Android project target version as 9.0 to resolve this issue.  
 
 
We have mentioned the same as breaking changes in our release notes,   
  
  
Please find the documentation regarding target framework version,  
 
 
Regards, 
Sangeetha Raju. 



KL Kleverton October 18, 2019 05:08 PM UTC

I am using the latest version of the following:

Xamarin.Forms v4.2.0.848062 
SfListView 17.3.0.17

and the Android project is already targeting the API 28.

However, I am not being able to build the project.

Any solution?


SR Sangeetha Raju Syncfusion Team October 21, 2019 12:22 PM UTC

Hi Kleverton, 
 
We would like to inform you that we couldn’t able to replicate the reported issue even with Xamarin Forms version as 4.2.0.848062 and SfListView version as 17.3.0.17. Can you please ensure whether the compile using Android version in Android properties should be of 9.0 as like below snap shot. 
 
 
We have attached the tested sample for your reference. Please find the sample from the below link.  
 
 
Can you please let us know whether the issue reproduces in our sample also? If yes, please share the details of the tested device. Else, please share the Android.csproj file to Check your issue better and provide appropriate solution at our end. 
 
Please let us know if you require any further assistance. 
 
Regards, 
Sangeetha Raju. 


Loader.
Live Chat Icon For mobile
Up arrow icon