Google Play服务过时.需要10298000,但找到了10084470



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

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'
}

您是否正在使用仿真器?如果是这样,请使用API级别25创建新的模拟器,或将Gradle中的Google Play服务版本降级到9.6.0。

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

如果您有2.0 Pre 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!

是如此简单,但如此令人沮丧。

最新更新