This application used to crash. use GitZip to download StepCounter: GitZip URL: http://kinolien.github.io/gitzip/ StepCounter URL: https://github.com/googlesamples/android-fit/tree/master/StepCounter Use import project Update gradle in buildscript to 3.0.1 Update google_play_services_library in gradle.properties from '11.6.0' to '11.8.0' Then you have set up your 'OAuth 2.0 Client ID'. Each developer should create their own API key. The following is a tutorial for the setup: https://developers.google.com/fit/android/get-api-key I would suggest creating a debug certificate The application should now compile perfectly. However, you won't get step counting till you get your API key.