I have a problem as: I didn't find where can I get this Jar file gcm.jar? also where Can I put it ?. Note I used Android 4.1.
-
7The GCM files are located under your **android-sdk\extras\google\gcm**-folder. For your Android-app, you'd want the "gcm-client\dist\gcm.jar". – kaderud Sep 04 '12 at 13:44
-
3I cannot find google in extras – egydeveloper Sep 04 '12 at 14:30
-
go to your computer drive where you have put android-sdk\extras\google\gcm-folder, there you find google in extras. – Abhishek Tamta Jan 29 '15 at 22:39
-
**Just checkout the following link** [http://stackoverflow.com/questions/11293424/android-sdk-manager-gcm-library][1] [1]: http://stackoverflow.com/questions/11293424/android-sdk-manager-gcm-library – sujith s Feb 12 '15 at 12:45
6 Answers
Start SDK Manager and scroll down to the section "Extras" and make sure you have installed Google Cloud Messaging for Android Library, if not, install the package.
The package will be installed in the directory "your-android-sdk\extras\google\gcm\
"
Client code (for example to be used in Android app):
gcm\gcm-client\
Server code (where the Client connects to and registers it's regId):
gcm\gcm-server\
To add the gcm client-jar (gcm.jar) to your Android-project, copy it to the "libs"-folder in your Eclipse project and right click on the file and select Build Path --> Add to Build Path.

- 5,457
- 2
- 36
- 49
-
I installed Cloud Messaging for Android Library but I didnot find google\gcm in extras – egydeveloper Sep 04 '12 at 14:57
-
-
I had only \sdk\extras\ google play... also google analytic and Google Admob – egydeveloper Sep 04 '12 at 15:15
-
Which version of SDK Manager are you using? Check in menu Tools -> About. Mine is "Revision 20.0.3". – kaderud Sep 04 '12 at 15:18
-
I found gcm.jar in `/opt/local/share/android-sdk-mac_x86/extras/google/gcm/gcm-client/dist`. Very helpful, thanks! – Peter Gluck Nov 28 '12 at 08:25
-
hey Peter Gluck ..i also can't find gcm folder in sdk/extras.....can u tell me where is /opt/local/share/android-sdk-mac_x86/extras/google/gcm/gcm-client/dist file located... – Durrat Mar 21 '13 at 08:04
-
@Durrat Did you install `Google Cloud Messaging for Android Library` from the *SDK Manager* ? – kaderud Mar 21 '13 at 08:46
-
yes i did install Google Cloud Messaging for Android Library from sdk manager and even if i open sdk manager it shows Google Cloud Messaging for Android Library Installed but there is no file in extras\google\ – Durrat Mar 22 '13 at 06:50
-
3@Durrat That is really weird. Download GCM from Google at http://dl-ssl.google.com/android/repository/gcm_r03.zip unzip the file, rename the folder `gcm_r03` to `gcm` and move it into your `android-sdk\extras\google` folder, this is only a dirty fix, the SDK will most likely not be able to update it with a new GCM version, or removed the manually installed version, but other than that, it's the complete GCM package. – kaderud Mar 22 '13 at 07:36
-
yeah..dats wierd...anyways i have downloaded the zip file ..wl give a try...thnks @chrkad – Durrat Mar 22 '13 at 08:40
-
Yeh its works for me. It was really a weired thing. But now resolved. thnks@kaderud – Robi Kumar Tomar Apr 03 '14 at 07:23
-
but this dl-ssl.google.com/android/repository/gcm_r03.zip is not path to latest gcm.jar file.. can anyone provide latest gcm.jar file? – Anitha Mar 31 '15 at 09:29
The GCM Helper libraries (gcm.jar) has been deprecated. The documentation for the library (https://developer.android.com/google/gcm/helper.html) now displays a messaging stating:
The information in this document has been superseded by GCM Server and GCM Client. Please use the GoogleCloudMessaging API instead of the GCM client helper library. The GCM server helper library is still valid.
Implementing a GCM server is documented here: https://developer.android.com/google/gcm/server.html Implementing a GCM client is now documented here: developer.android.com/google/gcm/client.html (sorry, can't post as a link because I don't have enough rep).
As on today's date, SDK Manager now has the option to "Show obsolete packages" (Packages->Show obsolete packages). This allows you to install GCM through the SDK Manager itself.

- 4,009
- 2
- 33
- 55
Go to this link
https://dl-ssl.google.com/android/repository/gcm_r03.zip
when download completes extract the zip file, you will get three directories with names client side, server side and samples.
now open your SDK folder and create a folder named "extras/android" and paste all three folders here DONE!!
now whenever make a new project in project classpath using add external jar add gcm.jar.
Just for the Recored: I followed the steps provided by chrkad but I found the .jar file in the DIST folder and NOT in the JAR folder. After I found that out I saw that Peter Gluck postet that before.
I hope that this could save some time to ppl having this issue! (took me 20 minutes)

- 10,917
- 9
- 46
- 59
Seems like this package is now obsolete. In order to see it in SDK Manager I had to check "Show obsolete packages" in the "Packages" menu
See details from answer

- 1
- 1

- 451
- 5
- 17