Can't implement GoogleApiClient.ServerAuthCodeCallbacks in android
I am implementing the google plus sign-in system in my android app by following the google developer guide at https://developers.google.com/identity/sign-in/android/sign-in
According to the tutorial, I have to implement:
GoogleApiClient.ServerAuthCodeCallbacks
to enable server side API for android app. However, the "ServerAuthCodeCallbacks" interface does not exist in the GoogleApiClient library, even in the latest version of the library.
Does anyone have the same problem? Or am I missing something?
Any input is greatly appreciated!
source to share
See example GitHub implementation: github.com/googleplus/gplus-quickstart-android
Your dependency on com.google.android.gms:play-services
must be at least version- specific 7.0.0
(currently the latest version 7.5.0
)
The class itself is currently being com.google.android.gms.common.api
packaged in Maven subdependenciesplay-services-base
So for example, for example:
dependencies {
compile 'com.google.android.gms:play-services:7.5.0'
}
Also see the current developer documentation here:
https://developers.google.com/android/guides/setup#add_google_play_services_to_your_project
source to share