无法连接到GoogleFit

CTD*_*Dex 1 google-play-services google-fit-sdk google-fit

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

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

有没有人对此有所了解.谢谢提前

ach*_*322 6

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

/sf/answers/1987410841/

@Sumoanand:

我也遇到过类似的问题.

This issue occurs if app is not registered properly in google developer console.
Run Code Online (Sandbox Code Playgroud)

我认为您已经使用生产密钥库证书指纹(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 !!!
Run Code Online (Sandbox Code Playgroud)