Essentials icon indicating copy to clipboard operation
Essentials copied to clipboard

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

Open SaqibS opened this issue 2 years ago • 2 comments

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?

SaqibS avatar Jun 09 '22 06:06 SaqibS

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)

tranb3r avatar Jun 09 '22 09:06 tranb3r

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.

jfversluis avatar Aug 25 '22 18:08 jfversluis

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

copang avatar Sep 27 '22 03:09 copang

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

AlexanderVanMeerten avatar Oct 02 '22 11:10 AlexanderVanMeerten

Any update? PR #2038 is still open

ghost avatar Oct 31 '22 10:10 ghost

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

AndreyPhilippov avatar Nov 08 '22 03:11 AndreyPhilippov

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

uwe-neuronation avatar Nov 10 '22 09:11 uwe-neuronation

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.

mohibsheth avatar Mar 23 '23 08:03 mohibsheth

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

RealSourceOfficial avatar Apr 10 '23 23:04 RealSourceOfficial

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

Kanat9494 avatar Apr 17 '23 04:04 Kanat9494

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

lufo88ita avatar Jun 19 '23 11:06 lufo88ita

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 avatar Jun 20 '23 16:06 MitchBomcanhao

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

Edit - this was wrong ignore this post

MitchBomcanhao avatar Jun 20 '23 16:06 MitchBomcanhao

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

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

MitchBomcanhao avatar Jun 20 '23 16:06 MitchBomcanhao

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

lufo88ita avatar Jun 23 '23 10:06 lufo88ita

Xamarin has to be the worst supported product in all Microsoft

malotho avatar Mar 02 '24 14:03 malotho