I'm trying to run one of the modules in the BasicSamples for Google Play Services. I have configured the app in the Game Services in the Developer Console including the OAuth2, package name, achievements, leaderboard etc. I have also updated Intellij SDK Manager to install Google Play Services and Google Repository. I've also updated the Take A Number app to include the application id and all the other ids.
However, when I try to run Take A Number I get the dialog:
"Install Google Play Games
This app requires the latest version of the Google Play Games app."
The documentation for setting up projects to use game services says to add
compile 'com.google.android.gms:play-services:10.0.1'
to build.gradle. I see these sample projects don't have that. So I tried adding it to build.gradle in TypeANumber but get the error:
Error:Execution failed for task ':TypeANumber:dexDebug'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.8.0_92\bin\java.exe'' finished with non-zero exit value 2
I see BaseGameUtils build.gradle contains
compile "com.google.android.gms:play-services-games:${gms_library_version}"
compile "com.google.android.gms:play-services-plus:${gms_library_version}"
(but not com.google.android.gms:play-services).
I updated gms_library_version defined in top level BasicSamples' build.gradle to 10.0.1 and that didn't work either.
This is taking quite an effort to set this up. Any help is appreciated.