问题描述
我试图获得一个玻璃用户的当前位置。
I'm attempting to get a user's current location on Glass.
调用 mLocationClient.connect()
失败,没有任何决议。然后,我检查,如果谷歌播放服务是可利用的设备上:
Calling mLocationClient.connect()
fails without any resolution. Then I checked if Google Play Services was available on the device with:
GooglePlayServicesUtil.isGooglePlayServicesAvailable(this);
这将返回 ConnectionResult.SERVICE_INVALID
,它根据文档是指在谷歌的版本播放服务安装在此设备是不是正宗的。
This returns ConnectionResult.SERVICE_INVALID
, which according to the documentation means that "The version of the Google Play services installed on this device is not authentic."
借助安装谷歌播放服务SDK指南没有描述的场景
这是否看起来是在玻璃本身就是一个错误?如果是的话,我会发送错误报告。
Does this appear to be a bug on Glass itself? If so, I'll file a bug report.
推荐答案
谷歌播放服务不适用于玻璃在这个时候。如果您尝试使用它,或者相关功能,您必须取消predictable结果。
Google Play Services is not available on Glass at this time. You may have unpredictable results if you attempt to use it, or related features.
如果这是你在乎的东西,请让谷歌知道。文件中的玻璃平台问题跟踪问题并,如果可能的话,描述一个用例你工作的需要它。这有助于玻璃团队优先功能。
If this is something you care about, please let Google know. File an issue in the Glass platform issue tracker and, if possible, describe a use case you're working on that requires it. This helps the Glass team prioritize features.
这篇关于谷歌播放服务];不地道"在玻璃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!