Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot Implement GoogleApiClient.ServerAuthCodeCallbacks in android

I am implementing Google plus login system to my android app by following the tutorial of google developer at https://developers.google.com/identity/sign-in/android/sign-in

According to the tutorial, I should implement:

GoogleApiClient.ServerAuthCodeCallbacks

interface to enable server-side API access for the android app. However, 'ServerAuthCodeCallbacks' interface does not exist in the GoogleApiClient library, even in the latest version of the library.

Does anybody have the same issue? Or, am I missing something?

Any input will be greatly appreciated!

like image 594
makeasy Avatar asked Jul 20 '26 22:07

makeasy


1 Answers

See the example implementation on GitHub: github.com/googleplus/gplus-quickstart-android

Your dependency on com.google.android.gms:play-services must be at least of version 7.0.0 (currently latest is version 7.5.0)

Class itself is currently placed in package com.google.android.gms.common.api in Maven sub-dependency play-services-base

So for example like this:

dependencies {
    compile 'com.google.android.gms:play-services:7.5.0'
}

Also see current Developer documentation here:
https://developers.google.com/android/guides/setup#add_google_play_services_to_your_project

like image 199
Marek Sebera Avatar answered Jul 23 '26 15:07

Marek Sebera



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!