Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Library issues upon import (Task type) #174

Open
Clicksurfer opened this issue Dec 20, 2020 · 8 comments
Open

Library issues upon import (Task type) #174

Clicksurfer opened this issue Dec 20, 2020 · 8 comments

Comments

@Clicksurfer
Copy link

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?

@59-36
Copy link

59-36 commented Feb 2, 2021

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

@Clicksurfer
Copy link
Author

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

@59-36
Copy link

59-36 commented Feb 10, 2021

No problem!

If anyone still needs this, this pull request did gods work for me: #126

if you want to download the unitypackage directly: #126 (comment)

hope this saves a bit of time for somebody

@Disav0wed
Copy link

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

@heyChenfu
Copy link

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

@BigTsung
Copy link

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

@CodeMasterYi
Copy link

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
Copy link

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

Please use the latest EDM4U and try again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants