Welcome to 16892 Developer Community-Open, Learning,Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

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

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
2.0k views
Welcome To Ask or Share your Answers For Others

1 Answer

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to 16892 Developer Community-Open, Learning and Share

548k questions

547k answers

4 comments

56.5k users

...