Errors when updating NuGet packages Xamarin.AndroidX.Camera.Camera2 (and Lifecycle and View) from 1.5.2 to 1.5.2.1

Open
#1,340 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
android, csharp

Research direction

Start by reproducing package restore for the BarcodeGenerator project targeting net10.0-android, using the Xamarin.AndroidX package updates listed in the report. Inspect the dependency constraints and restore output for the Lifecycle and Activity conflicts; done means the package update restores without version conflicts.

Written by the indexing model from the issue text.

Description

Android framework version

net10.0-android (Preview)

Affected platform version

NET10

Description

Errors when updating NuGet packages Xamarin.AndroidX.Camera.Camera2 (and Lifecycle and View) from 1.5.2 to 1.5.2.1

Package restore failed. Rolling back package changes for 'BarcodeGenerator'.
Detected package version outside of dependency constraint: Xamarin.AndroidX.Lifecycle.Runtime.Android 2.9.2.1 requires Xamarin.AndroidX.Lifecycle.Common (>= 2.9.2.1 && < 2.9.3) but version Xamarin.AndroidX.Lifecycle.Common 2.10.0 was resolved.
Package restore failed. Rolling back package changes for 'BarcodeGenerator'.
Version conflict detected for Xamarin.AndroidX.Activity. Install/reference Xamarin.AndroidX.Activity 1.12.2.1 directly to project BarcodeGenerator to resolve this issue.
BarcodeGenerator -> Xamarin.AndroidX.Camera.View 1.5.2.1 -> Xamarin.AndroidX.AppCompat 1.7.1.2 -> Xamarin.AndroidX.Activity (>= 1.12.2.1)
BarcodeGenerator -> BarcodeScanning.Native.Maui 2.2.1 -> Xamarin.AndroidX.Activity.Ktx 1.10.1.3 -> Xamarin.AndroidX.Activity (>= 1.10.1.3 && < 1.10.2).

Detected package version outside of dependency constraint: Xamarin.AndroidX.Lifecycle.Runtime.Ktx.Android 2.9.2.1 requires Xamarin.AndroidX.Lifecycle.Runtime.Android (>= 2.9.2.1 && < 2.9.3) but version Xamarin.AndroidX.Lifecycle.Runtime.Android 2.10.0.1 was resolved.
etc...

Relevant log output

Dominant language
C#
Stars
318
Forks
73
Avg merge
2d 6h
Merged PRs (30d)
10

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from dotnet/android-libraries

All issues in dotnet/android-libraries

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.