googlesamples / google-signin-unity

Google Sign-In API plugin for Unity game engine. Works with Android and iOS.
Other
424 stars 229 forks source link

Ambiguous reference: System.Threading.Tasks #210

Open WikyWu opened 2 years ago

WikyWu commented 2 years ago

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 System.Threading.Tasks.TaskCompletionSource match

EFC189B9-3847-4949-8BF8-D6A1D8E7AF40

Hellcat8 commented 2 years ago

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

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

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

WikyWu commented 2 years ago

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

quddi commented 1 year ago

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🦾