Android Studio Gradle build errors with login activity

£可爱£侵袭症+ 提交于 2020-01-04 21:28:52

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!