dotnet / dotnet/android-libraries

Warning NU1608: Dependency version mismatch with Xamarin.GooglePlayServices.Ads and Xamarin.AndroidX.Lifecycle.LiveData.Core

Open
#1,196 1 comment 0 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

.Net9

### Description

When installing either version 124.4.0 or 124.2.0 of Xamarin.GooglePlayServices.Ads in a new Android project targeting .NET 9 and SupportedOSPlatformVersion=24, I receive the following warning:

`warning NU1608: Detected package version outside of dependency constraint: Xamarin.AndroidX.Lifecycle.ViewModelSavedState 2.8.7.4 requires Xamarin.AndroidX.Lifecycle.LiveData.Core (>= 2.8.7.4 && < 2.8.8) but version Xamarin.AndroidX.Lifecycle.LiveData.Core 2.9.1 was resolved.`

### Steps to Reproduce

1. Create a new Android project with .NET 9 and SupportedOSPlatformVersion set to 24.
2. Add Xamarin.GooglePlayServices.Ads package (version 124.4.0 or 124.2.0).
3. Build the project.

### Did you find any workaround?

No

### 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.