Android Studio Google-play-services 库 [英] Android Studio Google-play-services library

查看:39
本文介绍了Android Studio Google-play-services 库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要 google-play-services 库,而且我使用的是 Android Studio.

I need the google-play-services library and I am using Android Studio.

  • 我使用 SDK 管理器安装了 google-play-service 库
  • 将依赖项添加到我的 build.gradle

但是当我同步我的项目时,它说:

But when I sync my project it says:

找不到 com.google.android.gms:play-services:3.1.36

could not found com.google.android.gms:play-services:3.1.36

我认为 3.1.36 版本是旧版本,我不知道正确的版本.

I thinks the 3.1.36 version is an old one and I dunno the right version.

我该怎么办?

推荐答案

为了使用该工件,您需要在 SDK 管理器的 extras 中安装Google Repository",不是"Google Play 服务",听起来您已经完成了.

In order to use that artifact, you need to install the "Google Repository" in the extras of the SDK manager, not "Google Play Services" as it sounds like you've done.

这篇关于Android Studio Google-play-services 库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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