google-signin-unity
google-signin-unity copied to clipboard
Library issues upon import (Task type)
In recent versions of Unity (for example 2020.1.3f1), the Google Sign-in Package contains compilation errors that prevens Unity from building or playing. The errors are:
Library\PackageCache\[email protected]\Editor\Models\Providers\Collab.cs(740,30): error CS1983: The return type of an async method must be void, Task or Task<T>Library\PackageCache\[email protected]\Editor\Models\Providers\Collab.cs(740,25): 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'Library\PackageCache\[email protected]\Editor\Models\Providers\Collab.cs(782,27): error CS0433: The type 'Task<T>' 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'
Because these errors are in the PackageCache, they cannot be directly fixed by the plugin users since they are regenerated every compilation.
Can this be fixed, or is there an existing workaround?
Did you find a solution to this? I am currently facing the same issue
I ended up just not using Google Sign-in Package. Sorry.
No problem!
If anyone still needs this, this pull request did gods work for me: https://github.com/googlesamples/google-signin-unity/pull/126
if you want to download the unitypackage directly: https://github.com/googlesamples/google-signin-unity/pull/126#issuecomment-702019117
hope this saves a bit of time for somebody
In recent versions of Unity (for example 2020.1.3f1), the Google Sign-in Package contains compilation errors that prevens Unity from building or playing. The errors are:
Library\PackageCache\[email protected]\Editor\Models\Providers\Collab.cs(740,30): error CS1983: The return type of an async method must be void, Task or Task<T>Library\PackageCache\[email protected]\Editor\Models\Providers\Collab.cs(740,25): 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'Library\PackageCache\[email protected]\Editor\Models\Providers\Collab.cs(782,27): error CS0433: The type 'Task<T>' 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'Because these errors are in the PackageCache, they cannot be directly fixed by the plugin users since they are regenerated every compilation.
Can this be fixed, or is there an existing workaround?
To fix this error: Go to Parse/Plugins folder and delete Unity.Compat.dll & Unity.Tasks.dll
Is this tool really made for Unity? Why it will cause compile error even import in a new Unity project..
In recent versions of Unity (for example 2020.1.3f1), the Google Sign-in Package contains compilation errors that prevens Unity from building or playing. The errors are:
Library\PackageCache\[email protected]\Editor\Models\Providers\Collab.cs(740,30): error CS1983: The return type of an async method must be void, Task or Task<T>Library\PackageCache\[email protected]\Editor\Models\Providers\Collab.cs(740,25): 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'Library\PackageCache\[email protected]\Editor\Models\Providers\Collab.cs(782,27): error CS0433: The type 'Task<T>' 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'Because these errors are in the PackageCache, they cannot be directly fixed by the plugin users since they are regenerated every compilation. Can this be fixed, or is there an existing workaround?
To fix this error: Go to Parse/Plugins folder and delete Unity.Compat.dll & Unity.Tasks.dll
It work for me on macOS
Is this tool really made for Unity? Why it will cause compile error even import in a new Unity project..
check the latest release date and you will get it!
maybe it's a problem from EDM4U, not a problem from this plugin!
Please use the latest EDM4U and try again!