无法连接到GoogleFit [英] Unable to Connect To GoogleFit

查看:436
本文介绍了无法连接到GoogleFit的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



E / GooglePlayServicesUtil:意外的错误代码5005



有人对此有任何意见。感谢提前

解决方案

我在这篇文章的答案帮助下解决了错误:



https://stackoverflow.com/a/28391583/2977169

@Sumoanand:



我也面临类似的问题。

 如果应用程序未在Google开发者控制台中正确注册,则会发生此问题。 

我认为您已经在Google开发者控制台中使用生产密钥库证书指纹(SHA1)在$ {

中进行测试)。 $ c>使用调试密钥库证书指纹(SHA1)创建另一个客户端ID。
卸载现有的应用程序。
安装应用程序&连接到Google fit。
请在Google健身应用程序&请确保您的应用已列为连接的应用(...>设置>已关联的应用>已关联的应用和设备)。
现在运行上面的代码&它会工作!


I am trying to connect to Googlefit but i am getting a strange error code as below

E/GooglePlayServicesUtil﹕ Unexpected error code 5005

Does anybody have any idea about this.Thanks In advance

解决方案

I solved the error with the help of the answer in this post:

https://stackoverflow.com/a/28391583/2977169

@Sumoanand:

I also faced similar problem.

This issue occurs if app is not registered properly in google developer console.

I think you have registered app on Google developer Console using production keystore certificate fingerprint(SHA1) where as you are testing it on app which has debug keystore.

Perform following steps:

Create one more client Id using debug keystore certificate fingerprint(SHA1).
Uninstall existing app.
Install app & connect to Google fit.
Check under google fit app & make sure that your app is listed as a connected app (... > Settings > Connected apps > Connected apps & devices).
Now run the above code & it will work !!!

这篇关于无法连接到GoogleFit的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆