I am trying to implement google play location services in my android app. I have followed this tutorial
It does not works on some devices. The google api client does not connects. It always goes to the callback method onConnectionFailed
.
I am using Android Studio and in the gradle file, I have added the following line:
compile 'com.google.android.gms:play-services-location:7.8.0'
So far I have found is that the version mentioned in the project (7.8.0) is more than the play services version installed in the device (7.5.71). So, it goes to the callback onConnectionFailed with the error code 2.
On changing the version in gradle file from 7.8.0 to 7.5.0, it works fine in these devices also.
So, is there any workaround so that I will be able to use the latest version and still be able to run it without any problem in the devices which does not have the latest version?