2X faster development
The ultimate Xamarin UI toolkit to boost your development speed.
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:
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:
|
2X faster development
The ultimate Xamarin UI toolkit to boost your development speed.
This page will automatically be redirected to the sign-in page in 10 seconds.
Hi,
I cannot deinstall the support libraries via nugget because Xamarin.Forms.4.4.0.991537 depends on it. How do we proceed here?
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
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