How Google Cloud Messaging Service in Android Works?
Asked Answered
P

6

15

I want to use GCM Service in my application.

I have referred to the following link (Android Developer: Google GCM) but was not able to install the GCM Library in my eclipse.

From the SDK manager I am not getting GCM Library in the Extras Folder.

Can anyone please help me?

Praiseworthy answered 28/6, 2012 at 9:32 Comment(0)
S
29

I had similar issues and it was resolved once I updated Android SDK Tools to revision 20 and Android Platform SDK Tools to revision 12. Rev 19/11 would not shown up Extras > Google Cloud Messaging for Android Library in SDK Manager. And make sure that you restart SDK manager after updating.

It should then show up in SDK manager as shown bellow: enter image description here

Sink answered 28/6, 2012 at 9:44 Comment(2)
Thanks for this. I had to check for updates on eclipse to update the SDK manager. Works now.Misgovern
I updated to revision 20 and everything work just fine, but I feel that new platform tools in slower than previous version. My avds run slower... Idk why ?Bloomington
L
1

For me just an update don't work. But try to download and install new Android SDK from http://developer.android.com/sdk/index.html. After installing this it finally shows me new libraries in extras.

Librarianship answered 28/6, 2012 at 12:12 Comment(0)
R
1

Go to Help->Check for updates, and update your eclipse. After update you will get "Google Cloud Messaging for Android library" in Extras

Rocca answered 29/6, 2012 at 10:12 Comment(0)
I
1

Or use in path-to-android-sdk/tools/

./android.bat update sdk
Idellaidelle answered 5/7, 2012 at 8:17 Comment(0)
B
1

i had the same problem i solved it by: First Close SDK Manager. Then open AVD Manager click on "Tools" > "Options" And then click on "Clear cache" then close AVD Manager,And open SDK Manager and click "Packages" > "Reload" And there is it API 16(Android 4.1 JB) And At Extras "Google Cloud Messaging for Android libary"

Breakneck answered 12/7, 2012 at 16:38 Comment(0)
S
1

0pen Android Skd manager,Go to Extra and Install the Google Clouds messaging for android. After installation,open the Android SKD->Extra->google and import the gcm project to your IDE Now you have gcm.jar in libs folder.

Speedball answered 30/8, 2012 at 11:24 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.