Android的工作室摇篮建立与登录活动错误 [英] Android Studio Gradle build errors with login activity

查看:168
本文介绍了Android的工作室摇篮建立与登录活动错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这些奇怪的错误,我无法修复它。我所做的只是创建一个新的登录活动,就会出现此问题。

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.

输入图像的描述在这里

我已阅读,我不得不迁移到GoogleApiClient,但我不知道如何迁移到...我今天装了Android的工作室,以及一切都是全新的。我真的想开始做一些应用开发,但是这是我的路。

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.

推荐答案

看来你是不包括谷歌播放服务的lib在摇篮的依赖,就是把它放到你的应用程序摇篮文件(依赖关系部分)

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.

问候

这篇关于Android的工作室摇篮建立与登录活动错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆