问题
I am having these weird errors, and I am unable to fix it. All I did was create a new login activity and this problem occurs.
I have read that I have to migrate to GoogleApiClient, but I have no idea how to 'migrate' to it...I installed Android Studio today as well and everything is brand new. I just really want to start doing some app development, but this is in my way.
Here is a related error as well
UPDATE: I have changed the version of the google play services in gradle dependencies, but now this error is shown.
回答1:
Seems that you are not including the google play services lib in your gradle dependencies, is that put it into your app gradle file (dependencies section)
compile 'com.google.android.gms:play-services:6.1.71'
Then Sync, Clean and Rebuild, and should work.
Regards
来源:https://stackoverflow.com/questions/32151241/android-studio-gradle-build-errors-with-login-activity