Google Play服务已过期.需要10298000但找到10084470

Rém*_*émi 4 dependencies android gradle

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

Google Play services out of date. Requires 10298000 but found 10084470
Run Code Online (Sandbox Code Playgroud)

在我的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'
}
Run Code Online (Sandbox Code Playgroud)

ayz*_*sci 18

你在使用模拟器吗?如果是这样,请使用API​​ Level 25创建新的模拟器,或将gradle中的google play服务版本降级到9.6.0.