GCMRegistrar不能得到解决 [英] GCMRegistrar cannot be resolved

查看:178
本文介绍了GCMRegistrar不能得到解决的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想实现推送通知。我有一个进口com.google.android.gcm.GCMRegistrar问题就不能得到解决。

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

我没有安装谷歌播放服务并添加谷歌播放services_lib 来我的项目文件夹中。

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

但问题依然存在。我试图找到 gcm.jar ,因为我看到过别人的解决方案,但我没有这样的.jar。

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?

推荐答案

首先下载谷歌云消息传递为Android库。对于这个GOTO Android的SDK管理器 - > Extras->谷歌云消息传递为Android库检查并安装它

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:

现在,下载此libary你会看到在 GCM 文件夹可进​​入路径 D:\ ..... \ Android的SDK \演员\谷歌

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

现在你会发现 gcm.jar 进入路径 D:\ .... \ Android的SDK \演员\谷歌\ GCM \样本\ GCM-演示客户端\库

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

现在,添加此 gcm.jar 文件到您的项目

Now, add this gcm.jar file into your project

这篇关于GCMRegistrar不能得到解决的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆