添加gcm.jar在Eclipse IDE(谷歌云消息传递) [英] Add gcm.jar in Eclipse IDE (Google Cloud Messaging)

查看:277
本文介绍了添加gcm.jar在Eclipse IDE(谷歌云消息传递)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个问题,因为: 我没有找到我在哪里可以得到这个jar文件gcm.jar?也是在那里我可以把它? 请注意我用的Andr​​oid 4.1。

I have a problem as: I didn't find where can I get this Jar file gcm.jar? also where Can I put it ?. Note I used Android 4.1.

推荐答案

开始的 SDK管理器,然后向下滚动到部分其他,并确保已安装的谷歌云消息传递为Android库,如果没有,请安装包。

Start SDK Manager and scroll down to the section "Extras" and make sure you have installed Google Cloud Messaging for Android Library, if not, install the package.

该软件包将安装目录中的您-Android的SDK \演员\谷歌\ GCM \

The package will be installed in the directory "your-android-sdk\extras\google\gcm\"

客户端code(例如将在Android应用程序中使用):
GCM \ GCM客户端\

Client code (for example to be used in Android app):
gcm\gcm-client\

服务器code(其中客户端连接到并记录它的REGID):
GCM \ GCM服务器\

Server code (where the Client connects to and registers it's regId):
gcm\gcm-server\

要在GCM客户罐(gcm.jar)添加到您的Andr​​oid项目,将其复制到 - 文件夹中的Eclipse项目,并右键单击该文件,然后选择< STRONG>构建路径 - >添加到构建路径

To add the gcm client-jar (gcm.jar) to your Android-project, copy it to the "libs"-folder in your Eclipse project and right click on the file and select Build Path --> Add to Build Path.

这篇关于添加gcm.jar在Eclipse IDE(谷歌云消息传递)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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