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

Ambiguous reference: System.Threading.Tasks

Open WikyWu opened this issue 3 years ago • 3 comments

Hello, when i use the plugin, some error occurred.

Unity version: 2019.4.27f1 Google SignIn Unity version: 1.0.4

Ambiguous reference: System.Threading.Tasks.TaskCompletionSource<GoogleSignInUser> System.Threading.Tasks.TaskCompletionSource<GoogleSignInUser> match

EFC189B9-3847-4949-8BF8-D6A1D8E7AF40

WikyWu avatar Apr 20 '22 09:04 WikyWu

Hello, Have you found a solution? I have the same problem. Thank you.

EDIT : it seems that the errors went away by doing this :

  • in Unity go to Assets/Parse/Plugins
  • There should be two files : Unity.Compat and Unity.Tasks, select them
  • in the Inspector window, uncheck "Auto Reference" for both files. (don't forget to click Apply)

Now we'll see if this will cause any problem in the future or not

Hellcat8 avatar Jul 11 '22 15:07 Hellcat8

@Hellcat8 not yet, i change the source library to https://github.com/playgameservices/play-games-plugin-for-unity

WikyWu avatar Aug 18 '22 01:08 WikyWu

Hello, Have you found a solution? I have the same problem. Thank you.

EDIT : it seems that the errors went away by doing this :

  • in Unity go to Assets/Parse/Plugins
  • There should be two files : Unity.Compat and Unity.Tasks, select them
  • in the Inspector window, uncheck "Auto Reference" for both files. (don't forget to click Apply)

Now we'll see if this will cause any problem in the future or not

Worked for me, thx a lot🦾

quddi avatar Mar 07 '23 17:03 quddi