dotnet / dotnet/android-libraries

Updating to .net 9 android causing version outside of dependency constraint

Open
#1,050 9 comments 2 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
317
Forks
73
Avg merge
1d 8h
Merged PRs (30d)
17

Description

### Android framework version

net9.0-android

### Affected platform version

VS2022 17.12

### Description

We are trying to update to .net 9 and our push notification project is holding us back!

Can someone explain to me what Am Im missing ,

- I have a push notification project using Azure notification hub and i have .net 8 compiling
- but .net 9 doesnt ,
- I can resolve with a NU1608 but seems wrong and not sure what I will break.

Can someone advise?
```
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.1 was resolved.
Warning As Error: Detected package version outside of dependency constraint: Xamarin.AndroidX.Lifecycle.LiveData 2.8.5.1 requires Xamarin.AndroidX.Lifecycle.LiveData.Core.Ktx (>= 2.8.5.1 && < 2.8.6) but version Xamarin.AndroidX.Lifecycle.LiveData.Core.Ktx 2.8.7.1 was resolved.
Warning As Error: Detected package version outside of dependency constraint: Xamarin.AndroidX.Lifecycle.LiveData 2.8.5.1 requires Xamarin.AndroidX.Lifecycle.LiveData.Core (>= 2.8.5.1 && < 2.8.6) but version Xamarin.AndroidX.Lifecycle.LiveData.Core 2.8.7.1 was resolved.
```

**.net 8 below works**

```






1.8.2.1


124.0.0.1


2.52.0


118.5.0.1


118.4.0.1


```
**Below using .net 9 I get all sorts of issues of android incompatabilities **






124.0.3.1


118.5.0.3


118.4.0.3


1.8.5.1


2.52.0


```

### Steps to Reproduce

See above dependencies

### Did you find any workaround?

Add a nowarn but not sure is the right thing todo

### Relevant log output

```shell

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.