gpt4 book ai didi

Android Wear : Google Play services out of date. 需要 9256000 但找到 8701534

转载 作者:搜寻专家 更新时间:2023-11-01 09:45:51 25 4
gpt4 key购买 nike

我的 Android Wear 应用无法运行。每次它尝试在手机上打开某些东西时,我都会在 logcat 中收到此错误:

W/GooglePlayServicesUtil: Google Play services out of date.  Requires 9256000 but found 8701534

我的应用程序应该没有问题,因为它以前工作过。当我对我的 LG G Watch 进行出厂重置时,它停止工作了。
我用一个应用程序检查了 watch 上的 Google Play 版本代码,它是(如 logcat 所示)8701534。 (为什么不更新?)我手机的版本代码是 9256448。以下是一些屏幕截图:

Huawei Nexus 6P angler LG G Watch LGW100

(单击以获取更大的屏幕截图)。



这是 watch 的(缩短的)build.gradle:

apply plugin: 'com.android.application'

android {
compileSdkVersion 24
buildToolsVersion "23.0.3"

defaultConfig {
applicationId "com.my.packagename"
minSdkVersion 21
targetSdkVersion 24
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.google.android.support:wearable:1.3.0'
compile 'com.google.android.gms:play-services-wearable:9.2.0'
}

这是手机的(缩短的)build.gradle:

apply plugin: 'com.android.application'

android {
compileSdkVersion 24
buildToolsVersion "23.0.3"

defaultConfig {
applicationId "com.my.packagename"
minSdkVersion 11
targetSdkVersion 24
versionCode 1
versionName "1.0"
}

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

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
wearApp project(':wear')
testCompile 'junit:junit:4.12'

compile 'com.android.support:appcompat-v7:24.0.0'
compile 'com.google.android.gms:play-services-wearable:9.2.0'

...
}

我已经尝试过一些常见的方法,例如:

  • watch 恢复出厂设置(已经大约 5 次)
  • 清除手机上 Google Play 服务的缓存/数据
  • 在手机上重新安装了 Google Play 服务。
  • 将 watch 连接到 3 台不同的设备。请参阅下面的设备名称。
  • 让 watch 保持连接状态约 12 小时。 (手机和 watch 都已连接并在充电器上)。没有任何变化。
  • compile 'com.google.android.gms:play-services-wearable:9.2.0' 更改为 compile 'com.google.android.gms:play-services-wearable :+'

以下是我试过的手机型号,包括 watch :

  • LG G watch LGW100(Android 6.0.1,Android Wear 1.5)
  • 华为 Nexus 6P(Android Nougat 预览版 4)
  • 三星 Galaxy S5(Android 6.0.1)
  • 三星 Galaxy S6(Android 6.0.1)

我确定这不是手机,因为我在三个不同的设备上连接了 watch 。

你有什么建议吗?

最佳答案

我今天遇到了同样的问题,但我设法克服了它。我做的事情:

  • 在手机上重新安装了 Android Wear(由于 this)
  • 取消 watch 与 Android Wear 应用的配对,然后进行修复
  • 多次从 Android Wear 应用重新同步应用
  • 在 watch 上的“设置/关于/版本”中,我点击了几次 GMS 版本。它应该说“正在检查更新”。起初,此操作的 logcat 中有错误,然后(在重新安装等之后)这些错误消失了。
  • 启动了 map 和健身(希望它们以某种方式触发更新)

关于Android Wear : Google Play services out of date. 需要 9256000 但找到 8701534,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38170179/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com