Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot resolve isConnected() - Google+ login on android studio

I created a new activity to handle logging into my app. I selected login activity from the template menu and ticked include google+ sign in. Upon building the activity I'm met with the problem "cannot resolve isConnected()" found from the supplied

boolean connected = getPlusClient().isConnected();

I've tried rebuilding project and cleaning project but to no avail. Does anyone know how I can fix this problem?

like image 539
user1861013 Avatar asked Nov 09 '22 13:11

user1861013


1 Answers

You are likely using a new version of google play service, where the PlusClient class doesn't exist anymore. Follow this up to date tutorial instead: https://developers.google.com/identity/sign-in/android/sign-in

like image 184
quent Avatar answered Nov 15 '22 06:11

quent