android - W/GooglePlayServicesUtil : Google Play services out of date. 需要 8298000 但找到 8107534

标签 android bluetooth google-play-services wear-os

关于 SO 的许多其他问题,我遇到了类似的错误消息。与其他问题不同,这是关于硬件调试设备。

我的 gradle wear-build 文件如下所示:

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.google.android.support:wearable:1.2.0'
    compile 'com.google.android.gms:play-services-wearable:8.3.0'
    compile 'com.android.support:appcompat-v7:23.1.0'
}

在模拟器中调试该应用程序工作正常,但一旦我发布该应用程序并将其安装到我的可穿戴设备上,移动设备和可穿戴设备之间的连接将无法正常工作。通过蓝牙调试 wear(除此之外别无他法),显示了这一小行调试信息:

W/GooglePlayServicesUtil:Google Play 服务已过时。需要 8298000 但找到 8107534

我认为 gradle 依赖项会将可穿戴服务打包到已交付的 apk 中(就像“编译”一样),这不正确吗?

如何让硬件 watch 工作?

最佳答案

Google Play 服务不会与您的应用 bundle 在一起,因此您看到的是您的 watch 正在使用 8.1 版的 Play 服务(安装在您的 watch 上)并且您使用更高版本编译了您的应用,并且那是行不通的;您 watch 上安装的版本应始终大于或等于您编译应用程序时使用的版本(您的手机也是如此)

关于android - W/GooglePlayServicesUtil : Google Play services out of date. 需要 8298000 但找到 8107534,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33597539/

相关文章:

android - 服务 Intent 必须明确 - Google Analytics

javascript - jQuery 加载微调器未显示

java - 如何在 Android 中获取表格布局的内容

Android/Cordova 与 google-play-services 构建依赖关系错误(多个库的包名称为 'com.google.android.gms' )

android - 管理蓝牙连接安卓

android - 如何在 Maven 项目中使用 google play 服务?

java - 在 Android 中将数据传递到寻呼机适配器内的 fragment 时出现问题

ios - 如何正确实现 didReceiveWriteRequests? iOS6 核心蓝牙

Android - BluetoothAdapter getAddress 在某些手机中返回不匹配的地址

android - 设备位置关闭时从 Google Play 服务获取最后已知位置