Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to Plugin.InAppBilling 9.0.5-beta Failed #659

Open
david-maw opened this issue Dec 30, 2024 · 2 comments
Open

Upgrade to Plugin.InAppBilling 9.0.5-beta Failed #659

david-maw opened this issue Dec 30, 2024 · 2 comments

Comments

@david-maw
Copy link

Version Number of Plugin: 9.0.5-beta
Version of VS: 17.12.3
Version of MAUI: 9.0.21

Attempting to upgrade the plugin via Nuget Package Manager fails with:

Version conflict detected for Xamarin.AndroidX.Lifecycle.LiveData.Core. Install/reference Xamarin.AndroidX.Lifecycle.LiveData.Core 2.8.7.1 directly to project DivisiBill to resolve this issue. 
 DivisiBill -> Plugin.InAppBilling 9.0.5-beta -> Xamarin.Android.Google.BillingClient 7.1.1.1 -> Xamarin.AndroidX.Activity 1.9.3.1 -> Xamarin.AndroidX.Lifecycle.ViewModelSavedState 2.8.7.1 -> Xamarin.AndroidX.Lifecycle.LiveData.Core (>= 2.8.7.1 && < 2.8.8) 
 DivisiBill -> Microsoft.Maui.Controls 9.0.21 -> Microsoft.Maui.Controls.Core 9.0.21 -> Microsoft.Maui.Core 9.0.21 -> Xamarin.AndroidX.Lifecycle.LiveData 2.8.5.1 -> Xamarin.AndroidX.Lifecycle.LiveData.Core (>= 2.8.5.1 && < 2.8.6).

To reproduce it:

  1. Clone the DivisiBill] repository at https://github.com/david-maw/DivisiBill.git
  2. Switch to the 'alpha' branch
  3. Build it for Android to verify you can
  4. Use the package manager to attempt to upgrade the plugin.
@dartasen
Copy link

dartasen commented Jan 3, 2025

If there's a conflict between two libraries, you can pin the right version of Xamarin.AndroidX.Lifecycle.LiveData.Core in your project

<PackageReference Include="Xamarin.AndroidX.Lifecycle.LiveData.Core" Version="2.8.7.1" />

@david-maw
Copy link
Author

@dartasen Did that work for you then? What I found was that Maui.Controls 9.0.21 requires ">= 2.8.5.1 && < 2.8.6", so forcibly inserting 2.8.7.1 renders it unusable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants