I followed the tutorial here: google-plus-integration
I have tried before a simple google sign-in api without problems. Reading the tutorial I wrote this code:
mGoogleApiClient = new GoogleApiClient.Builder(this)
.enableAutoManage(this /* FragmentActivity */,
this /* OnConnectionFailedListener */)
.addApi(Plus.API)
.addScope(Scopes.PLUS_LOGIN)
.addScope(Scopes.PLUS_ME)
.build();
Maybe I am stupid but this code gives me an error before compiling as:
addScoper(com.google.android.gms.commin.api.Scope) in Builder cannot be applided to String
I tried with new Scope(Scopes.PLUS_LOGIN) but when I run the app it crashes.
Did Google really put up a broken code on their tutorial?