【问题标题】:modular Play Services not working in gradle?模块化 Play 服务在 gradle 中不起作用?
【发布时间】:2014-12-10 06:50:29
【问题描述】:

因此,Google 已经发布了模块化 Play Services,并且据说您可以在 gradle 文件中执行以下操作: 编译'com.google.android.gms:play-services-plus:6.5.+'

但我收到一条错误消息: 错误:找不到:com.google.android.gms:play-services-plus:6.5.+

我使用的是带有最新版本 gradle 的 Android Studio 1.0(rels. 12/8/2014)。

有什么想法吗?

谢谢

【问题讨论】:

  • 他们现在正在使用 jcenter ...您还下载了最新的 m2repository 吗?
  • compile 'com.google.android.gms:play-services:6.1.+' 对你也不起作用吗?
  • @ianhanniballake 试试 Sam 的答案,它对我有用。

标签: android gradle


【解决方案1】:

mavenCentral无关,您需要确保为“Google Repository”和“Google Play services”安装了最新的SDK包

https://developer.android.com/sdk/installing/adding-packages.html

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多