google-signin-unity icon indicating copy to clipboard operation
google-signin-unity copied to clipboard

Library issues upon import (Task type)

Open Clicksurfer opened this issue 4 years ago • 8 comments

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?

Clicksurfer avatar Dec 20 '20 07:12 Clicksurfer

Did you find a solution to this? I am currently facing the same issue

59-36 avatar Feb 02 '21 16:02 59-36

I ended up just not using Google Sign-in Package. Sorry.

Clicksurfer avatar Feb 02 '21 17:02 Clicksurfer

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

59-36 avatar Feb 10 '21 22:02 59-36

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

Disav0wed avatar Mar 19 '21 21:03 Disav0wed

Is this tool really made for Unity? Why it will cause compile error even import in a new Unity project..

heyChenfu avatar Sep 24 '21 04:09 heyChenfu

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

BigTsung avatar Jun 24 '22 03:06 BigTsung

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!

CodeMasterYi avatar Jul 08 '22 02:07 CodeMasterYi

maybe it's a problem from EDM4U, not a problem from this plugin!

Please use the latest EDM4U and try again!

CodeMasterYi avatar Jul 08 '22 02:07 CodeMasterYi