Unable to add Xamarin.Firebase.Auth Nuget Package

Asgar Ali 86 Reputation points
2022-06-09T19:32:48.2+00:00

when i adding the Xamarin.Firebase.Auth Nuget Package it shows errors and fails to install.

Severity Code Description Project File Line Suppression State
Error NU1202 Package Xamarin.Firebase.Auth 121.0.1.7 is not compatible with netstandard2.0 (.NETStandard,Version=v2.0). Package Xamarin.Firebase.Auth 121.0.1.7 supports:

  • monoandroid12.0 (MonoAndroid,Version=v12.0)
  • net6.0-android31.0 (.NETCoreApp,Version=v6.0) practiceApp C:\Users\farde\source\repos\practiceApp\practiceApp\practiceApp\practiceApp.csproj 1

Severity Code Description Project File Line Suppression State
Error Package restore failed. Rolling back package changes for 'practiceApp'.

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,301 questions
0 comments No comments
{count} votes

Accepted answer
  1. Leon Lu (Shanghai Wicresoft Co,.Ltd.) 69,386 Reputation points Microsoft Vendor
    2022-06-10T01:52:32.29+00:00

    Hello,​

    Based on your error and nugget package, your nugget package is designed for Xamarin.android, If you want to use it in xamarin.forms, please install it in ProjectName.Android project, do not install in share code project and ProjectName.ios project.

    Then you need to set Compile using Android version (Target Framework) ** to **Android 12.

    I installed Xamarin.Firebase.Auth in my project. My Xamarin.Forms version is 5.0.0.2478 and Xamarin.Essentials version is 1.7.3, I get error that remind me to install Xamarin.AndroidX.Browser, I install Xamarin.AndroidX.Browser 1.3.0.10, because Xamarin.Forms and Xamarin.Essentials requires Xamarin.AndroidX.Browser (>= 1.3.0.6 && < 1.4.0).

    Best Regards,

    Leon Lu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

0 additional answers

Sort by: Most helpful