GCM示例项目错​​误消息"找不到google-play-services_lib.apk"

mjn*_*mjn 13 eclipse android google-cloud-messaging google-play-services

使用http://code.google.com/p/gcm/source/browse/#git%2Fgcm-client上提供的示例代码,应用程序启动协议包含有关缺少APK的消息.

[2013-06-22 10:28:24 - GCMClientNewAPI] ------------------------------
[2013-06-22 10:28:24 - GCMClientNewAPI] Android Launch!
[2013-06-22 10:28:24 - GCMClientNewAPI] adb is running normally.
[2013-06-22 10:28:24 - GCMClientNewAPI] Performing com.google.android.gcm.demo.app.DemoActivity activity launch
[2013-06-22 10:28:29 - GCMClientNewAPI] Uploading GCMClientNewAPI.apk onto device '015d3e63881c020d'
[2013-06-22 10:28:30 - GCMClientNewAPI] Installing GCMClientNewAPI.apk...
[2013-06-22 10:29:07 - GCMClientNewAPI] Success!
[2013-06-22 10:29:07 - google-play-services_lib] Could not find google-play-services_lib.apk!
[2013-06-22 10:29:07 - GCMClientNewAPI] Starting activity com.google.android.gcm.demo.app.DemoActivity on device 015d3e63881c020d
[2013-06-22 10:29:07 - GCMClientNewAPI] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.google.android.gcm.demo.app/.DemoActivity }
Run Code Online (Sandbox Code Playgroud)

但是,该应用程序可以连接到Play服务,并获得注册ID.同样发送消息似乎工作正常 - 至少没有记录错误.

图书馆项目由Android设置中的演示项目引用(也可以在project.properties文件中看到).

我正在测试使用当前Android 4.2.2版本的Nexus 7设备,以及当前的Google Play Services版本3.1.36(669520-30).

什么可能导致这无法找到google-play-services_lib.apk消息?

mjn*_*mjn 24

解决方案是对这个问题的答案进行评论:

使用新的Google Play服务

脚步:

  1. 从Java构建路径中删除google_play_services-lib引用
  2. 在Properties |中添加库引用 Android | 图书馆参考