I am trying to use google fit api to get the number of steps. I use a beginner's guide when I try to paste code
private GoogleApiClient mClient = null;
Android Studio cannot find the com.google.android.gms.common.api package and the GoogleApiClient class.
I added
compile 'com.google.android.gms:play-services:7.0.0'
on my gradle.
Any suggestions? Thanks
EDIT:
I changed gradle to compile 'com.google.android.gms: play-services: 6.5.87' And now it works ... does anyone know why 7.0.0 does not work? Thanks
source share