Google Play 服务已过时.需要 10298000 但找到 10084470 [英] Google Play services out of date. Requires 10298000 but found 10084470

查看:21
本文介绍了Google Play 服务已过时.需要 10298000 但找到 10084470的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I do not understand why I get this message:

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

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

In my gradle I compile the version 10.2 of google maps. Here are all my dependencies:

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.

Are you using an emulator? If so, create a new emulator using API Level 25 or downgrade the version of google play services in your gradle to 9.6.0.

这篇关于Google Play 服务已过时.需要 10298000 但找到 10084470的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆