GCMRegistrar cannot be resolved

后端 未结 4 2140
说谎
说谎 2021-01-06 06:40

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

4条回答
  •  余生分开走
    2021-01-06 07:22

    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

    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

提交回复
热议问题