Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

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

Open
AmrAlSayed0 opened this issue Mar 26, 2024 · 5 comments
Open
Labels
s/unverified New report that has yet to be verified t/bug 🐛

Comments

@AmrAlSayed0
Copy link

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 AmrAlSayed0 added s/unverified New report that has yet to be verified t/bug 🐛 labels Mar 26, 2024
@eynerdevp
Copy link

Same error here

@dan-consignly
Copy link

dan-consignly commented Mar 28, 2024

@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
Copy link
Member

jfversluis commented Mar 28, 2024

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
Copy link
Author

@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
Copy link

Same problem , any news about ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
s/unverified New report that has yet to be verified t/bug 🐛
Projects
None yet
Development

No branches or pull requests

5 participants