Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How To Find Android Google Play Services Version

I'm working on an android project which requires the use of google maps. I've been reading tutorials, and I have to add this to the AndroidManifest.xml file:

<meta-data     android:name="com.google.android.gms.version"     android:value="@integer/google_play_services_version" /> 

The thing is, I don't know what number to substitute the "@integer/google_play_services_version" with.

If anyone knows what I should enter there, and how to obtain that integer value, I'd appreciate it.

like image 263
user3184786 Avatar asked Jan 26 '14 06:01

user3184786


People also ask

What Android version is needed for Google Play Services?

A compatible Android device that runs Android 4.4 (API level 19) or higher and has the Google Play Store app installed.

Is Google Play Services the same as Google Play store?

Google Play Services is an app that is very closely linked to the Android system itself that allows your smartphone to benefit from the latest versions of apps and security patches without upgrading to the latest version of Android.


2 Answers

Here is the official guide for setting up Google Play Services in your project.

FYI, you could find the version number in this folder:

~\android-studio\sdk\extras\google\m2repository\com\google\android\gms\play-services 

Enjoy.

like image 26
Sam003 Avatar answered Oct 20 '22 01:10

Sam003


There is no need to subsitute. The value @integer/google_play_services_version takes care of it. Just make sure you have the latest Google Play Services library which is updated.

You can find it under google-play-services_lib>res>values>version.xml if you wish to add the number rather than @integer/google_play_services_version.

<?xml version="1.0" encoding="utf-8"?> <resources>     <integer name="google_play_services_version">4030500</integer> </resources> 
like image 108
Raghunandan Avatar answered Oct 20 '22 02:10

Raghunandan