【问题标题】:Google Play services out of date. Requires 10298000 but found 10084470, Google MapsGoogle Play 服务已过时。需要 10298000 但找到 10084470,谷歌地图
【发布时间】:2017-02-21 20:22:28
【问题描述】:

我正在尝试在我的 android 应用程序上显示地图,在此之前它可以正常工作,我今天尝试在模拟器中运行我的应用程序,但收到以下错误消息:

Google Play services out of date.  Requires 10298000 but found 10084470

我怀疑我没有在我的 Gradle 文件中编译正确的依赖项,但我不确定哪些会起作用。这是我目前使用的:

compile 'com.google.android.gms:play-services-maps:+'
compile 'com.google.android.gms:play-services-location:+'

我也有点困惑,因为这只是昨天的工作!

【问题讨论】:

  • 编译 'com.google.android.gms:play-services-maps:9.8.0' 从不使用 +。您必须设置一些版本,请尝试
  • 永远不要将 + 放入库中,除非您确定它的逻辑/方法/依赖项在新版本中不会改变

标签: android google-maps


【解决方案1】:

从您的依赖项中删除 plus 并提供特定版本的 playservice。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-07-25
    • 2013-02-15
    • 2019-09-23
    • 2015-08-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多