I included play-services-location-8.4.0 in my android project,to fetching location coordinates, and on my android emulator/mobile play-services version is not same as I include in project (version 9.8.79), and location object return null and after update emulator/phone google play service version from 9.8.79 to 10.2.1 or 11+ it works fine.
Asked
Active
Viewed 2,017 times
0
-
if your device has a newer version it should be fine. if the device has an older version you shouldnt be able to connect the GoogleApiClient – lelloman Aug 10 '17 at 12:15
-
Or if both have same verion – Arsalan Khan Aug 11 '17 at 11:25
-
same version should be fine – lelloman Aug 11 '17 at 11:28
-
my app version is 8.4 and emulator version is 9.8, according to you location object is not null but it always return null – Arsalan Khan Aug 11 '17 at 12:24
-
according to me, if the emulator has play services version 9.8 and your app depends on version 8.4 you are able to connect the GoogleApiClient. who said anything about location objects? maybe you should express your question more clearly – lelloman Aug 11 '17 at 13:40
-
my app google play service version 8.4 and emulator/mobile google play service version 9.8, which is newer version than app google play service but it returns null location object – Arsalan Khan Aug 15 '17 at 09:25
-
i think that your problem is not related to google play services version, i would suggest to change / ask a new question with relevant code – lelloman Aug 15 '17 at 11:12
-
When I update emulator/phone google play service version, then it works fine, and after that I uninstall google play service update then location object null – Arsalan Khan Aug 15 '17 at 11:19
-
so let's recap, your app depends on 8.4. if the emulator has 9.8 location is null but if you update the emulator google play services (to 11.something?) it works? – lelloman Aug 15 '17 at 11:21
-
Yes! it works fine – Arsalan Khan Aug 15 '17 at 11:23
-
ok so please update your question with this information and also add the code you're using – lelloman Aug 15 '17 at 11:23