Reputation: 1652
I recently decided to update everything in my Xamarin workspace, including all NuGet packages, and Xamarin.Forms.
I first installed all the newest Xamarin.Android.Support
packages, which clashed with the current version of Xamarin.Forms that I had, so I decided that I needed to update Xamarin.Forms anyway. I removed it and installed all the other packages (which worked lovely) and now I am trying to reinstall Xamarin.Forms again, but I am receiving:
Unable to resolve dependencies. 'Xamarin.Android.Support.Design 23.4.0.1' is not compatible with 'Xamarin.Forms 2.3.0.107 constraint: Xamarin.Android.Support.Design (= 23.3.0)'.
Any suggestions?
Upvotes: 13
Views: 9156
Reputation: 31
According to me own experience, I would recommend to:
Upvotes: 1
Reputation: 304
Starting with Xamarin.Forms 2.3.4 you can manually update all the Xamarin.Android.Support NuGet packages. The condition is that the Target Framework and the Target Android version options of your project (if you don't know what I'm talking about check out this page: Understanding Android API Levels) are set to at least Android 7.0, i.e API 24, or higher.
The official Xamarin documentation has also been updated: Xamarin Forms Troubleshooting
Upvotes: 0
Reputation: 93
For Resolution follow below steps
Refered from : https://xamarininterviewquestion.blogspot.in/2016/12/upgrade-nuget-xamarinandroidsupportdesi.html
Upvotes: 0
Reputation: 657
I would extremelly recommend by 1 year of experience with Xamarin.Droid and Xamarin.iOS to only update Xamarin.Forms to latest version, and ignore Other Xam.Support Libraries unless is extremelly necessary to bug fix something that you need.
Reason #1: It is not fully tested by Microsoft.
Reason #2: You might need to spend hours configuring and fixing the references e version compatibility.
Upvotes: 1
Reputation: 33993
I'm quoting James Montemagno from the Xamarin Forums here.
Xamarin.Forms locks in a very specific version of the support libraries and google play services. You can't update them because Xamarin.Forms isn't compatible with them as it would need to be re-compiled.
Xamarin.Android.Support.v4 (= 23.0.1.3) Xamarin.Android.Support.Design (= 23.0.1.3) Xamarin.Android.Support.v7.AppCompat (= 23.0.1.3) Xamarin.Android.Support.v7.CardView (= 23.0.1.3) Xamarin.Android.Support.v7.MediaRouter (= 23.0.1.3)
See the = 23.0.1.3, which means it is only compatible with that version number. This is just how NuGet works. When Xamarin.Forms updates these packages will auto update.
Forms gets 'linked' to a specific version of the Android libraries so it can be guaranteed that it will work together as it should. At this point, Xamarin.Forms (stable) isn't updated yet to use the latest Android Support packages. So you probably want to go with a somewhat older version of Forms, or check if there is a Forms pre-release which already has a reference to the newer Android Support libraries.
Of course; using these is not recommended in a production environment.
They added it in the official FAQ
Upvotes: 14
Reputation: 41
You can't update Xamarin.Forms and Xamarin.Android at the same time. As It has dependency issues with versions. So first, Select only Xamarin.Forms 2.3.0.107 and update. After that, Select rest of the Xamarin.Android.support lists and update.
Upvotes: 3