How to resolve "Cannot resolve reference `Xamarin.Android.Support.Interpolator'" in Xamarin.Forms Android projects?
If you are porting your portable projects to .NET standard projects, it is mandatory to install Xamarin.Forms version 3.2 or upwards in your project in Xamarin DataGrid. Installing Xamarin.Forms version 3.2 or upwards in your project will automatically install the required Android support libraries as dependency. These libraries were installed as separate packages in previous portable project configuration. So, this results in multiple references of the same library.
This results in the compilation error, “Cannot resolve reference `Xamarin.Android.Support.Interpolator`, referenced by `Syncfusion.SfDataGrid.XForms.Android` and Xamarin.Android.Support.SwipeRefreshLayout`, referenced by `Syncfusion.SfPullToRefresh.XForms.Android, in the SfDataGrid and SfPullToRefresh controls respectively.
To overcome this issue, change the Android target version to 9.0 or above 9.0 in .NET Standard projects.
Kindly refer following screenshot to set the Android Target version.
If you are facing this issue in Cross platform application with Xamarin.Forms version above 3.2, check whether any Android support library packages are installed. If installed, kindly uninstall those support library packages and set the Target Platform to 9.0, clean the project and build it again.
Kindly refer following screenshot to remove Android support libraries.
I hope you learned about how to resolve "Cannot resolve reference `Xamarin.Android.Support.Interpolator'" in Xamarin.Forms Android projects?.
You can refer to our Xamarin.Forms DataGrid feature tour page to know about its other groundbreaking feature representations and documentation, and how to quickly get started for configuration specifications. You can also explore our Xamarin.Forms DataGrid example to understand how to create and manipulate data.
If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!