Android import com.google.android.gms.plus.PlusClient cannot be allowed

I updated and imported the google-play-services_lib project and added this library to my project, but the same error is shown. Import com.google.android.gms.plus.PlusClient cannot be allowed to

import com.google.android.gms.plus.PlusClient; 

and PlusClient cannot be allowed for type on

private PlusClient mPlusClient;
+1
source share
1 answer

PlusClient is not available in the updated game services.

from this link

  private GoogleApiClient buildGoogleApiClient() {
    // When we build the GoogleApiClient we specify where connected and
    // connection failed callbacks should be returned, which Google APIs our
    // app uses and which OAuth 2.0 scopes our app requests.
    return new     GoogleApiClient.Builder(SigninActivity.this).addConnectionCallbacks(this)
            .addOnConnectionFailedListener(this).addApi(Plus.API,   Plus.PlusOptions.builder().build())
            .addScope(Plus.SCOPE_PLUS_LOGIN).build();
}
+1
source

Source: https://habr.com/ru/post/1680198/


All Articles