Skip to content Skip to sidebar Skip to footer

The Import Com.google.android.gms.gcm.googlecloudmessaging Cannot Be Resolved

I'm trying to use the notification in an Android app, I found many tuto but all use the com.google.android.gcm pakage which are deprecated. I see that I have to use the com.google

Solution 1:

Whether you added gcm.jar in your project?

Go to Android SDK Manager->Extras->GCM. Downlad it. Go to particular location.

It will contain gcm.jar.Add in your project.

Excellent tutorial is given here

http://www.androidhive.info/2012/10/android-push-notifications-using-google-cloud-messaging-gcm-php-and-mysql/

Solution 2:

You will need the GCM libraryy to work with GCM. You need to put GCM jar file in your libs folder and then you have to add it in you project. To get GCM library and add it to your project look at this link :

Getting Started with GCM

Post a Comment for "The Import Com.google.android.gms.gcm.googlecloudmessaging Cannot Be Resolved"