【问题标题】:Google Play services out of date. Requires 9683000 but found 9452230Google Play 服务已过时。需要 9683000 但找到 9452230
【发布时间】:2016-10-12 16:10:12
【问题描述】:

我一直在运行 Android 5.1.1 的手机上测试我的 android 应用程序,一切正常,但今天我在运行 Android 5.0.2 的平板电脑上测试了它,我收到以下警告并且该应用程序胜出'不运行它的服务:

GooglePlayServicesUtil: Google Play services out of date. Requires 9683000 but found 9452230

这是我的 gradle.build 文件,一切似乎都是最新的。我已经检查了平板电脑的更新,但似乎没有。

apply plugin: 'com.android.application'

android {
compileSdkVersion 24
buildToolsVersion "24.0.2"

defaultConfig {
    applicationId "alpha"
    minSdkVersion 16
    targetSdkVersion 24
    versionCode 1
    versionName "1.0.2"
    multiDexEnabled true
}

buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}

lintOptions {
    abortOnError false
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])

compile 'com.android.support:appcompat-v7:24.2.0'
compile 'com.google.code.gson:gson:2.7'
compile 'com.squareup.okhttp3:okhttp:3.4.1'
compile 'com.google.android.gms:play-services-location:9.6.1'

testCompile 'junit:junit:4.12'
testCompile 'org.powermock:powermock-api-mockito:1.6.4'
testCompile 'org.mockito:mockito-core:1.10.19'
}

关于如何解决问题的任何想法,谢谢!

编辑

这是来自 adb shell 的完整 logcat,以防有任何帮助:

W/ResourceType: Failure getting entry for 0x01080ad0 (t=7 e=2768) (error -75)
D/PhoneWindow: *FMB* installDecor mIsFloating : false
D/PhoneWindow: *FMB* installDecor flags : 8454400
V/ActivityThread: updateVisibility : ActivityRecord{37623128 token=android.os.BinderProxy@149bad0e {alpha.MainActivity}} show : true
I/Timeline: Timeline: Activity_idle id: android.os.BinderProxy@149bad0e time:8624348
W/GooglePlayServicesUtil: Google Play services out of date.  Requires 9683000 but found 9452230

【问题讨论】:

  • 在您的设备上更新它?
  • Google Play 服务?我检查了更新,但没有。
  • 嗯,确实有东西要更新了。
  • 您是否尝试过在 Android Studio 中运行所有平台和插件更新?在更新我的 IDE 之前我遇到了同样的问题。

标签: android gradle android-gradle-plugin google-play-services


【解决方案1】:

如果平板电脑的 Google Play 服务是最新的,您可能没有最新的 SDK 版本。

  • 转到 SDK 管理器并打开独立的 SDK 管理器
  • 更新 Android SDK 工具、Android SDK 平台工具和 Android SDK 构建工具。

希望引用的库将被检查,之后您不会遇到问题。

【讨论】:

    猜你喜欢
    • 2013-07-25
    • 2013-02-15
    • 2019-09-23
    • 2015-08-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多