【问题标题】:Google Play services out of date. Requires 10298000 but found 10084470Google Play 服务已过时。需要 10298000 但找到 10084470
【发布时间】:2017-03-05 16:12:30
【问题描述】:

我不明白为什么会收到此消息:

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

在我的 gradle 中,我编译了 10.2 版的谷歌地图。这是我所有的依赖项:

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })
    compile 'com.android.support:appcompat-v7:25.1.1'
    compile 'com.android.support:design:25.1.1'

    compile 'com.android.support:appcompat-v7:25.2.0'
    compile 'com.android.support:design:25.2.0'
    compile 'com.jakewharton:butterknife:7.0.1'

    compile 'com.stormpath.sdk:stormpath-sdk-android:1.1.3'
    compile 'pl.droidsonroids.gif:android-gif-drawable:1.2.5'

    compile 'com.android.support:cardview-v7:25.2.0'
    compile 'com.android.support:support-v4:25.2.0'

    compile 'com.squareup.okhttp3:okhttp:3.2.0'

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

    compile 'com.android.support:preference-v7:25.2.0'
    compile 'com.android.support:recyclerview-v7:25.2.0'
    compile 'org.apache.directory.studio:org.apache.commons.io:2.4'
    testCompile 'junit:junit:4.12'
}

【问题讨论】:

    标签: android gradle dependencies


    【解决方案1】:

    您使用的是模拟器吗?如果是这样,请使用 API 级别 25 创建一个新的模拟器或将 gradle 中的 google play 服务版本降级到 9.6.0。

    【讨论】:

    • 我降级到 9.6.0 并且成功了……这是为什么呢?
    • 它正在寻找您的模拟器没有的最新 google play services 版本。
    • 其他类似的 SO 问题太多了。这是一个完美的答案。
    • 遗憾的是,API 级别 25(修订版 3)出现了相同的错误消息。芽不想降级(需要新版本的东西),所以不得不等到谷歌更新图像..
    • 如果您在真实设备上遇到此错误,您可能需要强制在设备上更新播放服务 - 请参阅此答案:stackoverflow.com/a/51271596/1103584
    【解决方案2】:

    这个答案https://stackoverflow.com/a/45312782/1544046 对我来说效果更好。基本上,在模拟器上,您可以更新 GPS(仅供参考,您必须使用 Google 帐户登录)。

    【讨论】:

      【解决方案3】:

      如果您有 2.0 之前的 Wear OS 设备,您需要使用移动设备上的“Wear OS”应用程序来强制更新手表上的播放服务。幸运的是,这个过程很简单(但很难在网上找到如何做)。

          1.) Open the Wear OS app on your phone
          2.) Scroll down and tap "Advanced Settings"
          3.) Tap "Resync apps"
          4.) Resync apps will grey out - once it's enabled again
          5.) Grab your paired watch and go to Settings -> About -> Versions, Tap on Versions
          6.) Play Services is up to date!
      

      如此简单,却又如此令人沮丧。

      【讨论】:

        猜你喜欢
        • 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
        相关资源
        最近更新 更多