Skip to content

Library issues upon import (Task type) #174

@Clicksurfer

Description

@Clicksurfer

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\com.unity.collab-proxy@1.3.8\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\com.unity.collab-proxy@1.3.8\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\com.unity.collab-proxy@1.3.8\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?

Activity

59-36

59-36 commented on Feb 2, 2021

@59-36

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

Clicksurfer

Clicksurfer commented on Feb 2, 2021

@Clicksurfer
Author

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

59-36

59-36 commented on Feb 10, 2021

@59-36

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

Disav0wed commented on Mar 19, 2021

@Disav0wed

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\com.unity.collab-proxy@1.3.8\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\com.unity.collab-proxy@1.3.8\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\com.unity.collab-proxy@1.3.8\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

heyChenfu commented on Sep 24, 2021

@heyChenfu

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

BigTsung

BigTsung commented on Jun 24, 2022

@BigTsung

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\com.unity.collab-proxy@1.3.8\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\com.unity.collab-proxy@1.3.8\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\com.unity.collab-proxy@1.3.8\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

CodeMasterYi commented on Jul 8, 2022

@CodeMasterYi

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

CodeMasterYi commented on Jul 8, 2022

@CodeMasterYi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @CodeMasterYi@BigTsung@heyChenfu@Disav0wed@59-36

        Issue actions

          Library issues upon import (Task type) · Issue #174 · googlesamples/google-signin-unity