Xamarin.Firebase.Auth error ( NU1202 , NU1107 )

wanna_be_programmer 1 Reputation point
2022-08-10T20:35:52.003+00:00

Hi, I want to install Xamarin.Firebase.Auth to my android project. But serveral errors have occurred.

Firebase.Auth for iOS works fine.

NU1202 Package System.Buffers 4.5.1 is not compatible with monoandroid12.1 (MonoAndroid,Version=v12.1). Package System.Buffers 4.5.1 supports:

  • netcoreapp2.0 (.NETCoreApp,Version=v2.0)
  • uap10.0.16299 (UAP,Version=v10.0.16299) Objednajto.Android C:\Users\A\source\repos\Objednajto\Objednajto.Android\Objednajto.Android.csproj

NU1202 Package System.Memory 4.5.4 is not compatible with monoandroid12.1 (MonoAndroid,Version=v12.1). Package System.Memory 4.5.4 supports: netcoreapp2.1 (.NETCoreApp,Version=v2.1) Objednajto.Android C:\Users\A\source\repos\Objednajto\Objednajto.Android\Objednajto.Android.csproj

NU1107 Version conflict detected for Xamarin.AndroidX.Browser. Install/reference Xamarin.AndroidX.Browser 1.4.0.1 directly to project Objednajto.Android to resolve this issue.
Objednajto.Android -> Xamarin.Firebase.Auth 121.0.1.8 -> Xamarin.AndroidX.Browser (>= 1.4.0.1)
Objednajto.Android -> Xamarin.Forms 5.0.0.2515 -> Xamarin.AndroidX.Browser (>= 1.3.0.6 && < 1.4.0). Objednajto.Android C:\Users\A\source\repos\Objednajto\Objednajto.Android\Objednajto.Android.csproj

NU1202 Package Microsoft.Bcl.AsyncInterfaces 6.0.0 is not compatible with monoandroid12.1 (MonoAndroid,Version=v12.1). Package Microsoft.Bcl.AsyncInterfaces 6.0.0 does not support any target frameworks. Objednajto.Android C:\Users\A\source\repos\Objednajto\Objednajto.Android\Objednajto.Android.csproj

NU1202 Package System.Text.Json 6.0.1 is not compatible with monoandroid12.1 (MonoAndroid,Version=v12.1). Package System.Text.Json 6.0.1 does not support any target frameworks. Objednajto.Android C:\Users\A\source\repos\Objednajto\Objednajto.Android\Objednajto.Android.csproj

NU1202 Package System.Runtime.CompilerServices.Unsafe 6.0.0 is not compatible with monoandroid12.1 (MonoAndroid,Version=v12.1). Package System.Runtime.CompilerServices.Unsafe 6.0.0 does not support any target frameworks. Objednajto.Android C:\Users\A\source\repos\Objednajto\Objednajto.Android\Objednajto.Android.csproj

NU1202 Package System.Text.Encodings.Web 6.0.0 is not compatible with monoandroid12.1 (MonoAndroid,Version=v12.1). Package System.Text.Encodings.Web 6.0.0 does not support any target frameworks. Objednajto.Android C:\Users\A\source\repos\Objednajto\Objednajto.Android\Objednajto.Android.csproj

All of my attempts to fix this have failed so far...

Developer technologies | .NET | Xamarin
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Anonymous
    2022-08-11T05:59:25.753+00:00

    Hello,​

    Please install Xamarin.Firebase.Auth 121.0.1.6 version, do not install 121.0.1.8. Because Xamarin.Forms 5.0.0.2515 dependent on Xamarin.AndroidX.Browser (>= 1.3.0.6 && < 1.4.0).

    Please note: Xamarin.Firebase.Auth bindings for Google Play Services, it is used by Android platform, when you install it, please just select your android platform project.

    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.

    1 person found this answer helpful.

  2. wanna_be_programmer 1 Reputation point
    2022-08-22T07:48:03.163+00:00

    I resolved this issue by downgrading the xamarin.firebase.auth version

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.