Xamarin Firebase Auth does not install by Nuget

Asked

Viewed 110 times

1

Good morning friends. I’m starting a project in Xamarin Forms for iOS and Android, and will use Firebase for Authentication (Xamarin.Firebase.Auth).

But when selecting in the package manager (Nuget) the package Xamarin.Firebase.Auth inserir a descrição da imagem aqui

I get the following error:

Erro    NU1202  O pacote Xamarin.Firebase.Common 71.1610.0 não é compatível com netstandard2.1 (.NETStandard,Version=v2.1). O pacote Xamarin.Firebase.Common 71.1610.0 dá suporte a: monoandroid90 (MonoAndroid,Version=v9.0)

The versions are: inserir a descrição da imagem aqui

In Xamarinforms Project I have only the packages

  • Firebasedatabase.net (4.0.4)
  • Xamarin.Essentials (1.3.1)
  • Xamarin.Forms (4.4.0.991265)

From what I understood Xamarin.Firebase.Common (Auth requirement) does not run on Netstandard (2), and it runs on Mono9

How do I fix it?

To use Firebase authentication in Xamarin Forms I use this same package Xamarin.Firebase.Common?

Thanks in advance!


UPDATING:

After many attempts, I recreated the project and tried step by step from scratch, and received other error messages with other packages so I realized that it is not related to the error I posted above. As I said the recreated project was working normal, I created some classes etc and compiled, I went to lunch and gave indigestion because when I returned and sat on the PC I was already with this error: FirebaseDatabase.net está instalado mas ele não tá reconhecendo

From what I understand something is happening with Nuget and he is missing references!

Note that the Firebasedatabase.net package (4.0.4) that he is accusing is not found is installed as an image below:

Xamarin.Firebase.Net

I tried to enter Options Tools Nuget Package Manager and "Clear all caches" without success!

I do not understand very well what is the Xamlctask and why this occurs, some hint?

Strange that in Project Xamarin.Forms he is not finding any references: Namespaces não encontrados

Thanks again community for the help ever!

  • Would I have to use an older version of Xamarin.Forms? Or is it Netstandard.Library? I have no experience with the versions and packages used in Xamarinforms, nor with Mono, I don’t know if I’m using the right package for "Xamarin.Firebase.Auth", if you have any alternative I accept suggestions.

1 answer

1

  • I tried with both packages gives the same error!

  • I also tried to change the version of Netstandard.Library (2.0.3) to a lower one but it still works!

  • These versions I posted above Xamarin.Forms work with another SDK other than Netstandard.Library, I say to fix this incompatibility? Or I need to use a previous version of Xamarin?

  • I think you are trying to install the package in a shared project (Netstandard). You have to install this package in the specific project ***. Android.

  • Thank you very much, Daniel, for the support. Unfortunately I haven’t been able to solve it yet but I have a new diagnosis that I haven’t previously identified. I think the problem is not related to the package itself (firebase) I’m trying to install, apparently the deal is with Nuget. See my question I will update it with a current image.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.