问题描述
我正在开发一个Android Wear应用。同步数据时,我必须使用Google Play服务来更新设备之间的信息(手机和穿戴设备)。
我有一些问题:
I developing an android wear app. While synchonization the data I have to use Google Play Services in order to update information between devices (phone and wear).I have some problems:
-
虽然同步Google Play服务必须更新到最新版本。原始版本是8.7。但是在经过压缩之后,它们变为9.8!不是最新的:10.0.1!为什么?手机已获得最新版本(10.0.1)。因此,无法同步数据。
While synronization Google Play Services have to update to the lates version. The original version is 8.7. But after sycning they become 9.8 ! Not the latest: 10.0.1! WHY? The phone have got the latest (10.0.1). So, it is not possible to sync the data.
发布的APK文件是否会出现此问题?用户在设备上会看到相同的错误吗?它仅对开发中的应用程序有问题吗?要不然是啥?我不确定该应用程序能否在所有设备上正常运行!我对吗?
Will this problem appear for published APK file? Will users see the same error on their devices? Is it a problem only for applications in development? Or what? I will not sure that the application work properly in all devices! Am I right?
推荐答案
我找到的唯一解决方案是降低手持式和可穿戴式应用中的Google Play服务版本。
c
The only solution I've found is to decrease Google Play Services' version in both handheld and wearable applications.compile 'com.google.android.gms:play-services-wearable:9.6.1'
这篇关于Android Wear Google Play服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!