Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error while adding Xamarin plugin

I'm using Xamarin Forms with Visual Studio 2015. I get this error while I'm trying to add a messaging plugin.

Severity Code Description Project File Line Suppression State Error Unable to resolve dependencies. 'Xamarin.Android.Support.v4 23.0.1.3' is not compatible with 'Xamarin.Android.Support.Design 23.0.1.3 constraint: Xamarin.Android.Support.v4 (>= 23.0.1.3)', 'Xamarin.Forms 2.2.0.45 constraint: Xamarin.Android.Support.v4 (= 23.3.0)'. 0

I have already updated Visual Studio and Xamarin, but still get this error.
What else should I do to fix this error?

like image 257
tubefavorites.com Avatar asked Sep 26 '16 11:09

tubefavorites.com


People also ask

How do I add Xamarin to Visual Studio?

Installing Xamarin on WindowsDownload Visual Studio 2022 Community, Visual Studio Professional, or Visual Studio Enterprise from the Visual Studio page. Double-click the downloaded package to start installation. When Visual Studio 2022 installation has completed, click the Launch button to start Visual Studio.

Is Xamarin deprecated Android?

Not dead but possibly moribund. In May 2020, Microsoft announced that Xamarin. Forms, a major component of its mobile app development framework, would be deprecated in November 2021 in favour of a new . Net based product called MAUI - Multiform App User Interface.

Does Visual Studio have Xamarin?

Visual Studio Tools for Xamarin. Deliver native Android, iOS, and Windows apps with a single shared . NET code base.

Can I use Xamarin in Visual Studio code?

The primary software/program used for Xamarin cross platform development is Microsoft's Visual Studio. Visual Studio is classified as an Integrated Development Environment (IDE) that is used to build Xamarin apps. So, it has all the functionality you would need to build, debug and publish apps.


1 Answers

This is a dependency issue. For Xamarin.Forms 2.2.0.45, the dependencies are

  • Xamarin.Android.Support.v4 (= 23.3.0)
  • Xamarin.Android.Support.Design (= 23.3.0)
  • Xamarin.Android.Support.v7.AppCompat (= 23.3.0)
  • Xamarin.Android.Support.v7.CardView (= 23.3.0)
  • Xamarin.Android.Support.v7.MediaRouter (= 23.3.0)

Note version conflict between the above and the error: 'Xamarin.Android.Support.v4 23.0.1.3' is not compatible with 'Xamarin.Android.Support.Design 23.0.1.3 constraint: Xamarin.Android.Support.v4 (>= 23.0.1.3)'

You will need to install the compatible version of the messaging plugin you’d like to use. Here is a related troubleshooting guide: https://developer.xamarin.com/guides/xamarin-forms/troubleshooting/.

like image 127
ashley Avatar answered Oct 16 '22 04:10

ashley