【问题标题】:Adding older Google Play Services to Android Studio将旧版 Google Play 服务添加到 Android Studio
【发布时间】:2017-04-21 15:38:51
【问题描述】:

我正在使用 Android Studio 开发 Google 地图应用。我正在尝试通过在线模拟器对其进行测试。我的 Google play services 版本是 10.2.1,模拟器使用 play services 10.0.84。那里没有灵活性。有没有办法添加或更改我的谷歌播放服务以匹配他们正在使用的服务?我查看了项目结构下的依赖项,但我没有看到添加额外服务的方法。任何帮助将不胜感激。

【问题讨论】:

    标签: android android-studio google-play-services


    【解决方案1】:

    只需更改您的 Google Play 依赖项以匹配您喜欢的任何版本。示例:

    compile 'com.google.android.gms:play-services-games:10.2.1'//Replace 10.2.1 with 10.0.84 or whatever version you want
    

    这是一个使用 play-services-games 的示例,但您可以使用完整的库或每个单独的依赖项。只要您使用播放服务将所有依赖项更改为相同版本,它就会起作用

    【讨论】:

    • 感谢您的回复,但是当我尝试这样做时出现 gradle 构建错误:错误 29,13 无法解决:com.google.android.gms:play-services-maps:10.0.84
    猜你喜欢
    • 2013-11-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-12-30
    • 1970-01-01
    • 1970-01-01
    • 2016-06-16
    • 2016-02-01
    相关资源
    最近更新 更多