How to find the version of Google Play apps for Android

I am working on an Android project that requires the use of google maps. I read the 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 replace "@ integer / google_play_services_version" with.

If someone knows what I should enter there, and how to get this integer value, I would appreciate it.

+46
android android-manifest google-play-services google-maps
Jan 26 '14 at 6:13
source share
6 answers

No need to substitute. The value of @integer/google_play_services_version will take care of this. Just make sure the latest Google Play Services library is updated.

You can find it under google-play-services_lib>res>values>version.xml if you want to add a number, not @integer/google_play_services_version .

 <?xml version="1.0" encoding="utf-8"?> <resources> <integer name="google_play_services_version">4030500</integer> </resources> 
+50
Jan 26 '14 at 6:17
source share

Here's the official guide to setting up Google Play services in your project.

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

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

Enjoy.

+13
Nov 03 '14 at 17:18
source share

The error you mentioned is probably due to the fact that you are not adding the Google Play services library, as your project library does the following.

  • Choose File β†’ Import β†’ Android β†’ Existing Android code in the workspace and click Next.
  • Select Browse, type / extras / google / google _play_services / libproject / google-play-services_lib, and click Open. 3. Select Copy Projects to Workspace and click Finish.

Mark Google Play services as a library: right-click the google-play-services_lib project and choose Properties> Android. Check the "Library" option.

Right click on your project β†’ go to properties β†’ click android β†’ click add button β†’ click google_play_services_lib β†’ ok β†’ apply β†’ ok to clear your project this will fix your error.

+7
Mar 16 '14 at 22:45
source share

If you use gradle , make sure you have an updated version of Google Play services (downloaded using the SDK manager) and put this in the dependencies section of the project module:

 compile 'com.google.android.gms:play-services:+' 

IMPORTANT NOTE:
As a rule, you cannot delete the specific version of the source with which you are compiling.

+6
May 10 '15 at 12:51
source share

I was in the case when I had to use the Google Play version of the Froyo Services, and this version does not require a tag. In fact, the google_play_services_version XML entry does not exist in the Froyo + version of the Google Play Services library.

+1
May 21 '15 at 20:59
source share

Your library is probably not connected to the project correctly or you have an earlier version of the Google Play-Services library, so the conflict appears and Eclipse becomes stupid ..: S

No, you do not need to add anything to integers.xml. When you correctly link the Google-play-services library to your project, contact the android: value = "@ integer / google_play_services_version" and you are ready to go. When you add a library to your project, just make another clean, so fun Eclipse environment that sweeps things properly.

If you specify this number somewhere in the next version of the game, you will need to update it. And if you forget this, you will again spend time searching for the error .: S

Hope this helps.;)

0
Jan 01 '15 at 9:03
source share



All Articles