I created a blank project with unity 2019.1.4f1. I imported the firebase SDK package for authentication and another google sign in package from here. I am basically trying to achieve google signin in android with firebase. But when I import the 2nd package ( google sign in), I get this error (below)
I haven't done anything else in the project, just imported. I have no idea what to do.
Library\PackageCache\[email protected]\Scripts\Editor\TMP_PackageUtilities.cs(310,17): error CS0433: The type 'Task' exists in both 'Unity.Tasks, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' and 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
its simple,
goto: youProjectFolder\Assets\Parse\Plugins
remove all files outside of the dotNet45 Folder
and the error should be solved.
The issue that you may be running into is a compatibility layer that brings .NET 4.x features into .NET 3.x runtime called Parse. In Firebase, this is why there are dotnet3 and dotnet4 folders.
When you do your plugin imports, assuming that you're using the .NET 4.x runtime (default in Unity 2019), make sure that you grab the unity packages from the dotnet4 folder from Firebase. Then, when you import the Google SSO package, exclude the Parse directory (the Firebase plugin should have pulled in the necessary parts already anyway). That should get you up and running!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With