Question: I'm trying to implement Push Notification. I have a problem with `import com.google.android.gcm.GCMRegistrar` it cannot be resolved.

I did install `Google Play Services` and add `google-play-services_lib` to my projects folder.

But the problem remains. I tried to find `gcm.jar` as I saw solutions that worked for others, but I don't have this .jar. 

Is there something else that I'm missing?

Answer: 
First of all download `Google Cloud Messaging for Android Library`. For this goto `Android SDK Manager->Extras->Google Cloud Messaging for Android Library` check and install it.

See the below image:
![enter image description here](https://i.stack.imgur.com/Lw5qD.jpg)

Now, after downloading this libary you'll see `gcm` folder is available into path `D:\.....\android-sdk\extras\google` 

Now You'll find `gcm.jar` into path `D:\....\android-sdk\extras\google\gcm\samples\gcm-demo-client\libs`.

Now, add this `gcm.jar` file into your project
**GCMRegistrar** GCM API is deprecated.It is recommended to refer updated documentation on [Google developer Site](https://developers.google.com/android/reference/com/google/android/gms/gcm/GoogleCloudMessaging)