Xamarin.Forms icon indicating copy to clipboard operation
Xamarin.Forms copied to clipboard

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

Open AmrAlSayed0 opened this issue 1 year ago • 5 comments
trafficstars

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

  • Version with issue: v5.0.0.2662
  • Last known good version: v5.0.0.2622
  • Platform Target Frameworks:
    • iOS:
    • Android:
    • UWP:
  • Android Support Library / AndroidX Version:
  • NuGet Packages:
  • Affected Devices:

Environment

Show/Hide Visual Studio info

Build Logs

Screenshots

Reproduction Link

Workaround

AmrAlSayed0 avatar Mar 26 '24 09:03 AmrAlSayed0

Same error here

eynerdevp avatar Mar 26 '24 16:03 eynerdevp

@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.

dan-consignly avatar Mar 28 '24 03:03 dan-consignly

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.

jfversluis avatar Mar 28 '24 14:03 jfversluis

@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

AmrAlSayed0 avatar Mar 31 '24 07:03 AmrAlSayed0

Same problem , any news about ?

carbonete avatar Apr 18 '24 17:04 carbonete