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
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)
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:
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:
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:
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.
– Gilberto B. Terra Jr.