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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to resolve "Cannot resolve reference `Xamarin.Android.Support.Interpolator'" in Xamarin.Forms Android projects?

Platform: Xamarin.Forms |
Control: SfDataGrid |
Published Date: January 28, 2020 |
Last Revised Date: January 28, 2020 |
.NET Framework: 4.5

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. 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.

 

Screenshot:

 

Change 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.

ScreenShot:

Remove Android Support libraries

 

 

2X faster development

The ultimate Xamarin UI toolkit to boost your development speed.
ADD COMMENT
You must log in to leave a comment
Comments
Oliver Neis
Feb 05, 2020

Hi,

I cannot deinstall the support libraries via nugget because Xamarin.Forms.4.4.0.991537 depends on it. How do we proceed here?

Reply
Farjana Parveen Ayubb [Syncfusion]
Feb 12, 2020

Hi Oliver,

Not a problem, first uninstall the Xamarin.Forms package from all the projects in the solution explorer to remove the dependency between Xamarin and Andriod support libraries. Now that you have unistalled Xamarin package, you can proceed to remove the support library packages also one by one. After uninstalling all of the above, install the desired version of Xamarin.Forms package.

Regards, Farjana Parveen A

David
Jun 05, 2020

I specifically don't want to target Android version 9.0 or above. I thought SyncFusion worked with Android versions below 9.0 specifically trying to use with 8.1

Reply

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon