fit-samples icon indicating copy to clipboard operation
fit-samples copied to clipboard

couldnt get account info

Open codingjeremy opened this issue 5 years ago • 1 comments

Issue by saravanan72 Thursday Mar 08, 2018 at 06:03 GMT Originally opened as https://github.com/googlesamples/android-fit/issues/31


java.lang.NullPointerException: Attempt to invoke virtual method 'android.accounts.Account com.google.android.gms.auth.api.signin.GoogleSignInAccount.getAccount()' on a null object reference

error caught in step counter

codingjeremy avatar Sep 10 '19 20:09 codingjeremy

Comment by stAyushJain Thursday Mar 22, 2018 at 05:09 GMT


you need to register your SHA1 fingerprint. Get an OAuth 2.0 Client ID. It worked for me.

codingjeremy avatar Sep 10 '19 20:09 codingjeremy