代码之家  ›  专栏  ›  技术社区  ›  anber

如何在Android Studio中将Google Play Services repo更新到最新版本?[副本]

  •  1
  • anber  · 技术社区  · 7 年前

    我已经安装了Android Studio的最新最终版本2.3.3,它说没有找到更新。 Play Services website 自2017年9月起,最新版本为11.4.0。 但在我的系统中,我看到了路径 Android/sdk/extras/google/m2repository/com/google/android/gms/play-services 而Android Studio在settings中表示,Google Play服务已经安装,没有更新,版本为45。

    1 回复  |  直到 7 年前
        1
  •  9
  •   fweigl    7 年前

    他们现在使用自己的maven回购,而不是本地回购, 将其添加到顶级 build.gradle

    allprojects {
        repositories {
            maven { url 'https://maven.google.com' }
        }
    }