【问题标题】:Unable to Connect To GoogleFit无法连接到 Google 健身
【发布时间】:2014-10-14 13:19:00
【问题描述】:

我正在尝试连接到 Googlefit,但我收到一个奇怪的错误代码,如下所示

E/GooglePlayServicesUtil:意外错误代码 5005

有人对此有任何想法吗?提前谢谢

【问题讨论】:

标签: google-play-services google-fit google-fit-sdk


【解决方案1】:

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

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

@Sumoanand:

我也遇到过类似的问题。

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

我认为您已经使用生产密钥库证书指纹 (SHA1) 在 Google 开发者控制台上注册了应用程序,而您正在使用具有调试密钥库的应用程序对其进行测试。

执行以下步骤:

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 !!!

【讨论】:

    【解决方案2】:

    我遇到了这个错误,并且同意屏幕已正确填写。我可以解决这个问题的唯一方法是删除项目并重新创建它。

    【讨论】:

    • 您是否更改了任何设置或依赖项?
    【解决方案3】:

    我在连接到 Google Fit 之前将设备日期时间更改为过去的时间,但出现错误 5005。

    更改为当前时间后,它可以工作:)

    【讨论】:

      猜你喜欢
      • 2016-08-22
      • 1970-01-01
      • 2019-03-01
      • 2023-03-20
      • 1970-01-01
      • 1970-01-01
      • 2022-08-10
      • 2013-06-15
      • 1970-01-01
      相关资源
      最近更新 更多