The type or namespace name `GooglePlayGames' could not be found.

The type or namespace name `GooglePlayGames’ could not be found. Are you missing a using directive or an assembly reference?

Ive already imported the google play services into my project from Assets | Import Package | Custom Package,
However i tried to include the GooglePlayGames class on one my scripts and it says this.
After importing, i also didnt see this
"After importing, you should see that a new menu item was added to the Window menu: “Google Play Games”. "

1 Like

What kind of project are you targeting? I’ve experienced the same issue and realized that you need to specify the platform (Android for me), in order to avoid your error.
Hope this helps.

10 Likes

WOW thank you! Just had a similar issue after upgrading Unity, thought the upgrade broke this. Going to File → Build Settings, then selecting Android and clicking “Change Platform” fixed everything.

3 Likes

thanks blumersolutions. you helped me as well.

1 Like

Grrrr. I just had this issue and somehow the build target got changed. I was freaking out cause all of a sudden I tried to build and everything was crashing. Thanks!!!

Happened when I upgraded to latest 2019 from slightly older 2019 - build target change