user1406716
user1406716

Reputation: 9705

Error: "getGamesClient() not defined" - trying to run Google's Sample Game

I am trying to run the Google Game Play Services example from here.

I have added Google Play services (latest rev 15) and BaseGameUtils as library projects to my project, as instructed. I have no error except the following: "The method getGamesClient() is undefined ..."

I think I am missing some library reference? Any help is appreciated. My setup screenshots are below.

enter image description here

enter image description here

Upvotes: 2

Views: 1231

Answers (1)

user1406716
user1406716

Reputation: 9705

It does look like that the 8bitartist sample has not been updated with the new API googleApiClient() references.

I edited the 'getGamesClient()' using the code samples here: https://github.com/playgameservices/android-samples/commit/c2e6a2d66abaece3404f6a7b0e36e634470aca5d

Upvotes: 4

Related Questions