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.53k stars 505 forks source link

[Bug] Usage of Xamarin Essentials is disabled by AndroidX.Browser #2083

Closed RealSourceOfficial closed 1 year ago

RealSourceOfficial commented 1 year ago

Description

Usage of the Xamarin Essentials library is (again) disabled by AndroidX.Browser, as it is 1 version ahead of the max version. Can not downgrade AndroidX.Browser as it is "disabled by project"

Steps to Reproduce

  1. Install Xamarin.AndroidX.Browser 1.4.0.3
  2. Install Xamarin.Essentials 1.7.5
  3. Compatibility issues

Expected Behavior

Usage of Xamarin.Essentials

Actual Behavior

Disabled

Basic Information

Screenshots

image

Reproduction Link

Project

jfversluis commented 1 year ago

I'm a bit puzzled by this in your report:

CommunityToolkit.Maui 3.1.0, CommunityToolkit.Mvvm 8.1.0, Microsoft.Extensions.Logging.Debug 7.0.0, Xamarin.Essentials 1.7.5, (Xamarin SDK)

How and why are you using the .NET MAUI Toolkit and Xamarin.Essentials in the same project? If this is a .NET MAUI project, you should not need Xamarin.Essentials anymore.

MagicAndre1981 commented 1 year ago

@jfversluis Essentials depends on older Xamarin.AndroidX.Browser version . Maybe you should also target Essentials against MonoAndroid13.0 and latest Xamarin.AndroidX.Browser version 1.5.0 🤔

jfversluis commented 1 year ago

@MagicAndre1981 sure, but this project uses Xamarin.Essentials in .NET MAUI which shouldn't be needed and is likely causing issues.

RealSourceOfficial commented 1 year ago

I'm a bit puzzled by this in your report:

CommunityToolkit.Maui 3.1.0, CommunityToolkit.Mvvm 8.1.0, Microsoft.Extensions.Logging.Debug 7.0.0, Xamarin.Essentials 1.7.5, (Xamarin SDK)

How and why are you using the .NET MAUI Toolkit and Xamarin.Essentials in the same project? If this is a .NET MAUI project, you should not need Xamarin.Essentials anymore.

I realized I fixed this a while back, but I did realize I didn't need it. I have been reading really out-of-date guides on .NET MAUI stuff that used to require it (at least that's what I understand)

However, I did need to install two versions of Xamarin.AndroidX.Core to use some other libraries. I don't remember which libraries off the top of my head, but it was really annoying