Failed to resolve isConnected () - Sign in to Google+ on Android Studio

I created a new activity to handle login to my application. I chose the login action from the template menu and added a mark: enable google +. When creating an activity, I ran into the problem "can not resolve isConnected ()" found from the supplied

boolean connected = getPlusClient().isConnected();

I tried redesigning the design and cleaning project, but to no avail. Does anyone know how I can solve this problem?

+5
source share
1 answer

You are probably using a new version of google play service where the PlusClient class no longer exists. Follow this updated guide: https://developers.google.com/identity/sign-in/android/sign-in

+1
source

All Articles