TobiasBuchholz / Plugin.Firebase

Wrapper around the native Android and iOS Firebase Xamarin SDKs
MIT License
223 stars 49 forks source link

Getting Error While Adding Package from command prompt and NPM #252

Open umakant-prismhr opened 10 months ago

umakant-prismhr commented 10 months ago

E:\Project\MAUI\MobileManager\TLM.NextGenMobileApp\TLM.NextGenMobileApp>dotnet add package Plugin.Firebase Determining projects to restore... Writing C:\Users\usharma\AppData\Local\Temp\tmpfevdfi.tmp info : X.509 certificate chain validation will use the default trust store selected by .NET for code signing. info : X.509 certificate chain validation will use the default trust store selected by .NET for timestamping. info : Adding PackageReference for package 'Plugin.Firebase' into project 'E:\Project\MAUI\MobileManager\TLM.NextGenMobileApp\TLM.NextGenMobileApp\TLM.NextGenMobileApp.Mobile.csproj'. info : CACHE https://api.nuget.org/v3/registration5-gz-semver2/plugin.firebase/index.json info : Restoring packages for E:\Project\MAUI\MobileManager\TLM.NextGenMobileApp\TLM.NextGenMobileApp\TLM.NextGenMobileApp.Mobile.csproj... info : CACHE https://api.nuget.org/v3/vulnerabilities/index.json info : CACHE https://api.nuget.org/v3-vulnerabilities/2024.01.12.23.26.44/vulnerability.base.json info : CACHE https://api.nuget.org/v3-vulnerabilities/2024.01.12.23.26.44/2024.01.16.05.27.08/vulnerability.update.json error: NU1605: Warning As Error: Detected package downgrade: Xamarin.AndroidX.Browser from 1.6.0.2 to 1.4.0.3. Reference the package directly from the project to select a different version. error: TLM.NextGenMobileApp.Mobile -> Plugin.Firebase 2.0.11 -> Plugin.Firebase.Auth 2.0.7 -> Xamarin.Firebase.Auth 122.2.0 -> Xamarin.AndroidX.Browser (>= 1.6.0.2) error: TLM.NextGenMobileApp.Mobile -> Xamarin.AndroidX.Browser (>= 1.4.0.3) info : Package 'Plugin.Firebase' is compatible with all the specified frameworks in project 'E:\Project\MAUI\MobileManager\TLM.NextGenMobileApp\TLM.NextGenMobileApp\TLM.NextGenMobileApp.Mobile.csproj'. info : PackageReference for package 'Plugin.Firebase' version '2.0.11' added to file 'E:\Project\MAUI\MobileManager\TLM.NextGenMobileApp\TLM.NextGenMobileApp\TLM.NextGenMobileApp.Mobile.csproj'. info : Generating MSBuild file E:\Project\MAUI\MobileManager\TLM.NextGenMobileApp\TLM.NextGenMobileApp\obj\TLM.NextGenMobileApp.Mobile.csproj.nuget.g.props. info : Generating MSBuild file E:\Project\MAUI\MobileManager\TLM.NextGenMobileApp\TLM.NextGenMobileApp\obj\TLM.NextGenMobileApp.Mobile.csproj.nuget.g.targets. info : Writing assets file to disk. Path: E:\Project\MAUI\MobileManager\TLM.NextGenMobileApp\TLM.NextGenMobileApp\obj\project.assets.json log : Failed to restore E:\Project\MAUI\MobileManager\TLM.NextGenMobileApp\TLM.NextGenMobileApp\TLM.NextGenMobileApp.Mobile.csproj (in 3.87 sec).

I tried manually adding Xamarin.AndroidX.Browser from 1.6.0.2 in .csproject but still got error.

Also unable to add package from NPM , message is saying Blocked by project-

My VS version 17.8.3

TobiasBuchholz commented 10 months ago

Did you clean the project and run dotnet restore after adding Xamarin.AndroidX.Browser 1.6.0.2 manually to your .csproj file?