GCM Demo "Unfortunately, GCM demo has stopped"
来源:互联网 发布:神通数据库下载 编辑:程序博客网 时间:2024/06/01 10:39
本文链接:http://blog.csdn.net/kongxx/article/details/8155913
今天在学习Google Cloud Messaging (GCM),在运行文档上使用的例子(http://developer.android.com/guide/google/gcm/demo.html)的时候,按照步骤设置好server和client之后,运行server和client之后,在模拟器上运行GCM Demo的时候总是出现"Unfortunately, GCM demo has stopped"错误,检查了一下,需要修改的地方都按照文档上的说明改了,还是出错。最后发现原来是选择的AVD有问题,开始使用的是"Android 4.1.2 - API Level 16",后来我把AVD换成"Google APIs (Google Inc.) - API Level 16"再运行client,就不会再出现上面的问题了
另外在测试的时候还发现一个问题,就是文档上给出了两种server选择,一种是“Using a standard web server”,在使用这种server选择的时候,按照文档上的说明配置client是可以运行的。但是如果使用“Using App Engine for Java”,需要将client中CommonUtilities.SERVER_URL改成“http://192.168.1.10:8080”,就是去掉其中的“/gcm-demo”,然后再运行,此时就可以通过“http://192.168.1.10:8080”来发送message了。
- GCM Demo "Unfortunately, GCM demo has stopped"
- unfortunately,launcher has stopped
- Unfortunately,Launcher has stopped
- Unfortunately,Launcher has stopped
- Genymotion unfortunately has stopped
- 关于android unfortunately has stopped
- unfortunately, system ui has stopped
- android网络编程,unfortunately,socket has stopped
- "unfortunately android keyboard has stopped“问题
- 模拟器运行时,xxx has stopped unfortunately
- Unfortunately 程序名 has stopped的解决方法
- unfortunately XXX has stopped多国语言
- 模拟器提示Unfortunately,Activity has stopped.
- 模拟器提示Unfortunately,Activity has stopped
- "Unfortunately, Launcher has stopped" on Android
- genymotion unfortunately has stopped 问题的解决办法
- GCM入门
- GCM:入门
- 基于HalfEdge模型加面算法分析(1)
- 第二篇 溢出标志 CF与OF
- js 设计模式 第十二章 Decorator Pattern
- 我们都是爱藏书的人
- 在Oracle 11.2上用Gcc进行64bit编译(Solaris 11, x86)
- GCM Demo "Unfortunately, GCM demo has stopped"
- usb中urb相关接口函数
- 动态规划算法小结
- Android Server Push Notification - Urban Airship
- 比较两个结构体的内容是否相等
- Outlook2003 ---- 无法打开Outlook窗口,无法打开文件夹的集合
- 技术钻研点
- Porject Euler problem 55
- 电力用户用电信息采集系统