Skip to content

Package downgrades for Xamarin.AndroidX.Lifecycle.Common.Java8 #4095

Open
@Cheesebaron

Description

@Cheesebaron

Package

Sentry

.NET Flavor

.NET

.NET Version

9.0.202

OS

Android

OS Version

No response

Development Environment

Rider 2024 (MacOS)

SDK Version

5.5.1

Self-Hosted Sentry Version

No response

Workload Versions

Installed Workload Id Manifest Version Installation Source

android 35.0.39/9.0.100 SDK 9.0.200
ios 18.2.9180/9.0.100 SDK 9.0.200
maccatalyst 18.2.9180/9.0.100 SDK 9.0.200
macos 15.1.9163/9.0.100 SDK 9.0.200
maui 9.0.20/9.0.100 SDK 9.0.200
tvos 18.2.9173/9.0.100 SDK 9.0.200
wasm-tools 9.0.2/9.0.100 SDK 9.0.200

UseSentry or SentrySdk.Init call

NA

Steps to Reproduce

  1. Have a dependency on Xamarin.AndroidX.Lifecycle.Common 2.8.7.2
  2. Update Sentry to 5.5.1
<PackageVersion Include="Xamarin.AndroidX.Lifecycle.Common" Version="2.8.7.2" />
<PackageVersion Include="Sentry" Version="5.5.1" />

Expected Result

Sentry should upgrade nicely

Actual Result

When upgrading from 5.5.0 to 5.5.1 we now get package downgrade errors:

D:\a\1\s\src\Sentry.Mobile\Sentry.Mobile.csproj : error NU1608: Warning As Error: Detected package version outside of dependency constraint: Xamarin.AndroidX.Lifecycle.Process 2.8.5.1 requires Xamarin.AndroidX.Lifecycle.Runtime (>= 2.8.5.1 && < 2.8.6) but version Xamarin.AndroidX.Lifecycle.Runtime 2.8.7.2 was resolved. [D:\a\1\s\KioskMDM.sln]
D:\a\1\s\src\Sentry.Mobile\Sentry.Mobile.csproj : error NU1107: Version conflict detected for Xamarin.AndroidX.Lifecycle.Common. Install/reference Xamarin.AndroidX.Lifecycle.Common 2.8.7.2 directly to project Sentry.Mobile to resolve this issue.  [D:\a\1\s\KioskMDM.sln]
D:\a\1\s\src\Sentry.Mobile\Sentry.Mobile.csproj : error NU1107:  Sentry.Mobile -> Microsoft.Maui.Essentials 9.0.50 -> Xamarin.AndroidX.Browser 1.8.0.8 -> Xamarin.AndroidX.Core 1.15.0.2 -> Xamarin.AndroidX.Lifecycle.Runtime 2.8.7.2 -> Xamarin.AndroidX.Lifecycle.Common (>= 2.8.7.2 && < 2.8.8)  [D:\a\1\s\KioskMDM.sln]
D:\a\1\s\src\Sentry.Mobile\Sentry.Mobile.csproj : error NU1107:  Sentry.Mobile -> Sentry.Extensions.Logging 5.5.1 -> Sentry 5.5.1 -> Sentry.Bindings.Android 5.5.1 -> Xamarin.AndroidX.Lifecycle.Common.Java8 2.8.5.1 -> Xamarin.AndroidX.Lifecycle.Common (>= 2.8.5.1 && < 2.8.6). [D:\a\1\s\KioskMDM.sln]
  Failed to restore D:\a\1\s\src\Sentry.Mobile\Sentry.Mobile.csproj (in 7.12 sec).

Adding Xamarin.AndroidX.Lifecycle.Common directly to the Sentry.Mobile project does not solve the issue.

The dependency on Xamarin.AndroidX.Lifecycle.Common.Java8 seems to be new, and is very restrictive of which version of Lifecycle packages you can install.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions