xamarin / Xamarin.Auth

Xamarin.Auth
Apache License 2.0
541 stars 351 forks source link

Version Conflict with Android #316

Closed eman1986 closed 5 years ago

eman1986 commented 6 years ago

Xamarin.Auth Issue

Version conflict detected for Xamarin.Android.Support.Compat. Install/reference Xamarin.Android.Support.Compat 27.0.2.1 directly to project XamarinForms.Android to resolve this issue. XamarinForms.Android -> Xamarin.Android.Support.v7.MediaRouter 27.0.2.1 -> Xamarin.Android.Support.v7.Palette 27.0.2.1 -> Xamarin.Android.Support.Compat (= 27.0.2.1) XamarinForms.Android -> XamarinForms.Shared -> Xamarin.Auth 1.6.0.2 -> Xamarin.Android.Support.CustomTabs 25.4.0.2 -> Xamarin.Android.Support.Compat (= 25.4.0.2).

Version

Shared Layer:

Android Layer:

Steps to reproduce

  1. Install Xamarin.Auth
  2. Try to build solution
  3. Failure

Platform:

I did try to install Xamarin.Android.Support.Compat but that just made things worse. Should I be using the xamarin forms version instead? The example made by xamarin wasn't.

newky2k commented 6 years ago

@eman1986 adding @moljac to help with this issue

codeknox commented 6 years ago

Hey there @eman1986, did you manage to find a way to solve this?

Did you used SDK style projects?

I'm getting exactly the same error message, and so far haven't got any lucky solving it....

  iXingInvestCloud.library.Droid.csproj: [NU1107] Version conflict detected for Xamarin.Android.Support.Compat. Reference the package directly from the project to resolve this issue. 
 iXingInvestCloud.library.Droid -> Xamarin.Forms 3.2.0.839982 -> Xamarin.Android.Support.v7.MediaRouter 27.0.2 -> Xamarin.Android.Support.v7.Palette 27.0.2 -> Xamarin.Android.Support.Compat (= 27.0.2) 
 iXingInvestCloud.library.Droid -> Xamarin.Auth 1.6.0.2 -> Xamarin.Android.Support.CustomTabs 25.4.0.2 -> Xamarin.Android.Support.Compat (= 25.4.0.2).
Redth commented 5 years ago

You're going to have to add explicit references to the correct versions of the transitive dependencies to fix this (this is a symptom of using PackageReference). You can see a bit more about how to solve this here: https://redth.codes/how-to-fix-the-dreaded-version-conflict-nuget-error-in-your-xamarin-android-projects/