xamarin / Xamarin.Forms

Xamarin.Forms is no longer supported. Migrate your apps to .NET MAUI.
https://aka.ms/xamarin-upgrade
Other
5.63k stars 1.87k forks source link

[Bug] Xamarin.Forms v5.0.0.2662 has a package version conflict with itself #15878

Open AmrAlSayed0 opened 6 months ago

AmrAlSayed0 commented 6 months ago

Description

I get this error when I try to use v5.0.0.2662

Project1.csproj : error NU1605: Warning As Error: Detected package downgrade: Xamarin.AndroidX.RecyclerView from 1.2.1.5 to 1.2.1.1. Reference the package directly from the project to select a different version. 
Project1.csproj : error NU1605:  Project1 -> Project3 -> Xamarin.Forms 5.0.0.2662 -> Xamarin.AndroidX.Preference 1.1.1.13 -> Xamarin.AndroidX.RecyclerView (>= 1.2.1.5) 
Project1.csproj : error NU1605:  Project1 -> Project3 -> Xamarin.Forms 5.0.0.2662 -> Xamarin.AndroidX.RecyclerView (>= 1.2.1.1 && < 1.4.0)
Project1.csproj : error NU1605: Warning As Error: Detected package downgrade: Xamarin.AndroidX.RecyclerView from 1.2.1.5 to 1.2.1.1. Reference the package directly from the project to select a different version. 
Project1.csproj : error NU1605:  Project1 -> Project4 -> Xamarin.Forms 5.0.0.2662 -> Xamarin.AndroidX.Preference 1.1.1.13 -> Xamarin.AndroidX.RecyclerView (>= 1.2.1.5) 
Project1.csproj : error NU1605:  Project1 -> Project4 -> Xamarin.Forms 5.0.0.2662 -> Xamarin.AndroidX.RecyclerView (>= 1.2.1.1 && < 1.4.0)

Project2.csproj : error NU1605: Warning As Error: Detected package downgrade: Xamarin.AndroidX.RecyclerView from 1.2.1.5 to 1.2.1.1. Reference the package directly from the project to select a different version. 
Project2.csproj : error NU1605:  Project2 -> Project3 -> Xamarin.Forms 5.0.0.2662 -> Xamarin.AndroidX.Preference 1.1.1.13 -> Xamarin.AndroidX.RecyclerView (>= 1.2.1.5) 
Project2.csproj : error NU1605:  Project2 -> Project3 -> Xamarin.Forms 5.0.0.2662 -> Xamarin.AndroidX.RecyclerView (>= 1.2.1.1 && < 1.4.0)
Project2.csproj : error NU1605: Warning As Error: Detected package downgrade: Xamarin.AndroidX.RecyclerView from 1.2.1.5 to 1.2.1.1. Reference the package directly from the project to select a different version. 
Project2.csproj : error NU1605:  Project2 -> Project4 -> Xamarin.Forms 5.0.0.2662 -> Xamarin.AndroidX.Preference 1.1.1.13 -> Xamarin.AndroidX.RecyclerView (>= 1.2.1.5) 
Project2.csproj : error NU1605:  Project2 -> Project4 -> Xamarin.Forms 5.0.0.2662 -> Xamarin.AndroidX.RecyclerView (>= 1.2.1.1 && < 1.4.0)

Steps to Reproduce

  1. Add Xamarin.Forms v5.0.0.2662 to your project
  2. Build

Expected Behavior

Builds normally

Actual Behavior

Fails to build with above error

Basic Information

Environment

Show/Hide Visual Studio info ``` ```

Build Logs

Screenshots

Reproduction Link

Workaround

eynerdevp commented 6 months ago

Same error here

dan-consignly commented 6 months ago

@jfversluis Do you think you could resolve this with another service release?

This is causing build failures if we update to the latest (and possibly last version) of XF.

jfversluis commented 6 months ago

Yeah that's unfortunate. I'm not sure if this is enough to do a whole new release.

Nothing much has changed since the last version, so either stay on that version of Forms or add a direct reference to the Xamarin.AndroidX.RecyclerView package with the latest version, that will make the warning go away as well.

AmrAlSayed0 commented 6 months ago

@jfversluis Not a warning. It's a build error. And adding the latest Xamarin.AndroidX.RecyclerView v1.3.2.2 or the lowest matching Xamarin.AndroidX.RecyclerView v1.2.1.5 both create other conflicts mainly in Xamarin.AndroidX.Core

I already downgraded back to the last version so I'm not affected that much

carbonete commented 5 months ago

Same problem , any news about ?