xamarin / GooglePlayServicesComponents

Other
313 stars 145 forks source link

Xamarin.GooglePlayServices.Ads.Lite: Version conflict #840

Open tipa opened 4 months ago

tipa commented 4 months ago

Xamarin.Android Version (eg: 6.0):

.NET8

Describe your Issue

After the latest round of updates, there is a package incompatibility between Xamarin.GooglePlayServices.Ads.Lite & Xamarin.AndroidX.Preference

Packages used:

<PackageReference Include="Xamarin.AndroidX.Preference" Version="1.2.1.4" />
<PackageReference Include="Xamarin.GooglePlayServices.Ads.Lite" Version="122.3.0.2" />

Steps to Reproduce (with link to sample solution if possible):

dotnet new android
dotnet add package Xamarin.AndroidX.Preference
dotnet add package Xamarin.GooglePlayServices.Ads.Lite

Include any relevant Exception Stack traces, build logs, adb logs:

error: NU1107: Version conflict detected for Xamarin.AndroidX.Lifecycle.LiveData.Core. Install/reference Xamarin.AndroidX.Lifecycle.LiveData.Core 2.7.0.1 directly to project ads_dependency to resolve this issue.
error:  ads_dependency -> Xamarin.AndroidX.Preference 1.2.1.4 -> Xamarin.AndroidX.SlidingPaneLayout 1.2.0.11 -> Xamarin.AndroidX.Transition 1.4.1.16 -> Xamarin.AndroidX.Fragment 1.6.2.2 -> Xamarin.AndroidX.Lifecycle.LiveData.Core (>= 2.7.0.1)
error:  ads_dependency -> Xamarin.GooglePlayServices.Ads.Lite 122.3.0.2 -> Xamarin.AndroidX.Work.Runtime 2.9.0 -> Xamarin.AndroidX.Lifecycle.LiveData 2.6.2.3 -> Xamarin.AndroidX.Lifecycle.LiveData.Core (>= 2.6.2.3 && < 2.6.3).
info : Package 'Xamarin.GooglePlayServices.Ads.Lite' is compatible with all the specified frameworks in project 'C:\Users\user\Desktop\ads_dependency\ads_dependency.csproj'.
info : PackageReference for package 'Xamarin.GooglePlayServices.Ads.Lite' version '122.3.0.2' added to file 'C:\Users\user\Desktop\ads_dependency\ads_dependency.csproj'.
info : Generating MSBuild file C:\Users\user\Desktop\ads_dependency\obj\ads_dependency.csproj.nuget.g.props.
info : Generating MSBuild file C:\Users\user\Desktop\ads_dependency\obj\ads_dependency.csproj.nuget.g.targets.
info : Writing assets file to disk. Path: C:\Users\user\Desktop\ads_dependency\obj\project.assets.json
log  : Failed to restore C:\Users\user\Desktop\ads_dependency\ads_dependency.csproj (in 177 ms).
moljac commented 3 months ago

@tipa Thanks for the feedback.

Expected. "Alignment bumps" ready, but we were blocked with nuget file sizes.