AndroidX
AndroidX copied to clipboard
Warning NU1608: Dependency version mismatch with Xamarin.GooglePlayServices.Ads and Xamarin.AndroidX.Lifecycle.LiveData.Core
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
- Create a new Android project with .NET 9 and SupportedOSPlatformVersion set to 24.
- Add Xamarin.GooglePlayServices.Ads package (version 124.4.0 or 124.2.0).
- Build the project.
Did you find any workaround?
No
Relevant log output
Are you able to update packages until NU1608 goes away?
You might be able to add an explicit PackageReference to Xamarin.AndroidX.Lifecycle.LiveData.Core to fix this.