Xamarin.Forms
Xamarin.Forms copied to clipboard
[Bug] Xamarin.Forms v5.0.0.2662 has a package version conflict with itself
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
- Add Xamarin.Forms v5.0.0.2662 to your project
- 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
Same error here
@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.
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 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
Same problem , any news about ?