谷歌播放服务已过期。需要10298000版本,但发现只有10084470版本。

4
我不明白为什么会收到这个消息:

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

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

在我的Gradle中,我编译了Google Maps的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'
}
3个回答

18

您是否正在使用模拟器?如果是,可以使用API Level 25创建一个新的模拟器或将gradle中Google Play服务的版本降级到9.6.0。


我降级到了9.6.0版本,然后它就可以工作了……为什么会这样呢? - 0xtuytuy
1
它正在寻找最新的Google Play服务版本,但你的模拟器没有。 - ayz4sci
其他类似的SO问题上有太多噪音。这个是一个完美的答案。 - Suhas
很遗憾,使用API级别25(rev 3)时出现了相同的错误消息。但是不想降级(需要新版本的东西),所以必须等待Google更新镜像。 - Totoo
如果您在真实设备上遇到此错误,则可能需要强制更新设备上的Play服务 - 请参见此答案:https://dev59.com/BZ_ha4cB1Zd3GeqP3bld#51271596 - DiscDev

2

0
如果您使用的是2.0之前版本的Wear OS设备,您需要在移动设备上使用"Wear OS"应用程序来强制更新手表上的Play服务。幸运的是,这个过程很简单(但非常难在线上找到如何操作)。
    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!

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


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接