如何设置谷歌云消息传递为Android? [英] How to setup Google Cloud Messaging for Android?

查看:175
本文介绍了如何设置谷歌云消息传递为Android?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想实现谷歌云消息传递为Android(GCM)遵循的demo

但我无法执行像 $蚂蚁战争 $ Android的更新项目--name GCMDemo -p一些命令。 --target的android-16

我使用瓦帕服务器和目标定位的Andr​​oid 8 +

I am using wamp server and targetting Android 8+

任何帮助将是非常美联社preciated

Any help would be highly appreciated

推荐答案

如果您要执行 $蚂蚁战争命令:

  1. 首先你需要下载并在计算机上安装的Apache Ant
  2. 这时你应该configurate PATH和JAVA_HOME的变量,比如它被描述这里(成安装的Apache Ant一节)。
  3. 后,才可以执行蚂蚁战争命令到Windows命令行(提示)。 经过蚂蚁战争命令的.war 文件将被创建。
  4. 然后就可以部署和Tomcat服务器,例如上运行你的的.war 文件。 (创建Java EE项目,然后下载并安装Tomcat服务器,configurate路径和运行Tomcat服务器中的项目...)
  1. first you need to download and install Apache Ant on your computer.
  2. Then you should configurate your PATH and JAVA_HOME variables like it is described here (into "Installing Apache Ant" section).
  3. And only after that you can execute ant war command into Windows command line (prompt). After ant war command .war file will be created.
  4. then you can deploy and run your .war file on tomcat server for example. (create Java EE project, then download and install tomcat server, configurate paths, and run your project on tomcat server...)

这篇关于如何设置谷歌云消息传递为Android?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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