-
Notifications
You must be signed in to change notification settings - Fork 536
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
Current .NET 9 is not properly compatible with Android binding libraries #9698
Comments
This issue has been verified Visual Studio 17.13 Preview 2.1 (9.0.22 & 9.0.21 & 9.0.0). Can repro this issue on android platform. 8.0.100 works fine. |
.NET 9 is properly compatible with Android libraries, but .NET 9 is stricter with dependencies (transitive) If you add: <PackageReference Include="Xamarin.AndroidX.Lifecycle.LiveData.Core" Version="2.8.7.1" />
<PackageReference Include="Xamarin.AndroidX.Lifecycle.LiveData.Core.Ktx" Version="2.8.7.1" /> You will get new set of errors
Those errors are known and described in Something is using (as transitive dependency) |
Tracked here: dotnet/android-libraries#764. |
Description
Many android binding libraries require at least:
Xamarin.AndroidX.Lifecycle.LiveData
version2.8.7.1
but MAUI
9.0.22
requires older version>=2.8.5.1 && < 2.8.6
and because of this our Android binding fails to build.The reason why
.NET 8.0.100
works with this is because it's dependencies dont contain upper version limit. It requires justXamarin.AndroidX.Lifecycle.LiveData
version>2.6.1.3
Potentially connected to:
marcojak/MauiMTAdmob#113
Steps to Reproduce
_net9-compatability
https://github.com/Kebechet/Maui.RevenueCat.InAppBilling/tree/_net9-compatabilitydemo/DemoApp/DemoApp.sln
Link to public reproduction project repository
https://github.com/Kebechet/Maui.RevenueCat.InAppBilling/tree/_net9-compatability
Version with bug
9.0.22 SR2.2
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
8.0.100 SR10
Affected platforms
Android
Affected platform versions
No response
Did you find any workaround?
nope
Relevant log output
The text was updated successfully, but these errors were encountered: