xamarin / Essentials

Xamarin.Essentials is no longer supported. Migrate your apps to .NET MAUI, which includes Maui.Essentials.
https://aka.ms/xamarin-upgrade
Other
1.52k stars 505 forks source link

[Bug] Why does Xamarin.Essentials have an upper limit on Xamarin.AndroidX.Browser? #2019

Closed SaqibS closed 1 year ago

SaqibS commented 2 years ago

In a Xamarin.Android project, getting errors having Xamarin.Essentials 1.7.3 and Xamarin.AndroidX.Browser 1.4.0.2.

This is because Xamarin.Essentials has a constraint that Xamarin.AndroidX.Browser < 1.4.0.

I could downgrade either of the packages, trying to figure out which one is less criticial, but also curious why this constraint exists?

tranb3r commented 2 years ago

Dependency hell: Xamarin.Firebase.Auth 121.0.1.7 -> Xamarin.AndroidX.Browser (>= 1.4.0.1) Xamarin.Essentials 1.7.3 -> Xamarin.AndroidX.Browser (>= 1.3.0.5 && < 1.4.0) Xamarin.Forms 5.0.0.2478 -> Xamarin.AndroidX.Browser (>= 1.3.0.6 && < 1.4.0)

jfversluis commented 2 years ago

I think the constraint exists because in the past we have been dealing with breaking changes that came through the dependencies and were reported to us. That's why we decided to limit it to versions we know. I guess we can update it for a minor version increase. Especially the discrepancy between Forms and Essentials isn't great. I'll see if I can smoothen that out for a next release.

copang commented 2 years ago

Any new update? I'm looking forward to version 1.7.4 :(

AlexanderVanMeerten commented 2 years ago

And for Xamarin.Forms support for Xamarin.AndroidX.Browser 1.4.0

ghost commented 1 year ago

Any update? PR #2038 is still open

AndreyPhilippov commented 1 year ago

Any updates? Since we have this restriction i can't use some other nuget packages requiring Xamarin.AndroidX.Browser >= 1.4.0

uwe-neuronation commented 1 year ago

Any updates? I guess it the same issue like #2057 Is there any workaround already?

mohibsheth commented 1 year ago

I'm again having the same problem.

Unable to resolve dependencies. 'Xamarin.AndroidX.Browser 1.4.0.4' is not compatible with 'Xamarin.Essentials 1.7.5 constraint: Xamarin.AndroidX.Browser (>= 1.3.0.5 && < 1.4.0.3)'

I'm unable to update to 1.4.0.4 due to the constraint with Xamarin.Essentials however I need 1.4.0.4 to update another nuget.

RealSourceOfficial commented 1 year ago

+1, I can't use the Xamarin Essentials either

Kanat9494 commented 1 year ago

I am trying to use Xamarin.Firebase.Auth in net maui

lufo88ita commented 1 year ago

This topic was opened 1 year ago! No fix or news?

MitchBomcanhao commented 1 year ago

This topic was opened 1 year ago! No fix or news?

Perhaps the newer beta essentials version with newer android api support will have changes in this area? Am on holidays now so cannot try it but I'd definitely try it if I were you

MitchBomcanhao commented 1 year ago

@lufo88ita the nuget page for the new version mentions this as its dependency:

Edit - this was wrong ignore this post

MitchBomcanhao commented 1 year ago

Correcting my previous post, the new preview release has this dependency

Xamarin.AndroidX.Browser (>= 1.3.0.5 && <= 1.6.0)

lufo88ita commented 1 year ago

Great, but Xamarin is a product by Microsoft, I will expect the news from a member of the team :-)

malotho commented 7 months ago

Xamarin has to be the worst supported product in all Microsoft